Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the add_customer.php file via the "msg" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.
Published: 2026-03-30
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Reflected Cross‑Site Scripting
Action: Apply Fix
AI Analysis

Impact

The flaw resides in the add_customer.php file of SourceCodester Sales and Inventory System 1.0, where the "msg" parameter is not sanitized. An attacker can place arbitrary script or HTML in that parameter and deliver it through a crafted URL, causing the victim’s browser to execute the injected code.

Affected Systems

SourceCodester Sales and Inventory System version 1.0 is the sole affected product; no other vendors or versions are listed in the advisory.

Risk and Exploitability

The vulnerability has a CVSS base score of 6.1, indicating medium severity, and an EPSS score of less than 1 %, suggesting a low chance of exploitation. It is not included in the CISA KEV catalog. Based on the description, the likely attack vector involves a remote attacker crafting a malicious URL that includes a malicious msg value and luring a user to visit the link, which then results in script execution in the user’s browser.

Generated by OpenCVE AI on April 6, 2026 at 18:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the source code to sanitize or escape the msg parameter in add_customer.php
  • Implement a Content Security Policy that disallows inline script execution
  • Test the changes in a staging environment before deploying to production
  • Verify that no unfiltered content is rendered in the output

Generated by OpenCVE AI on April 6, 2026 at 18:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 07 Apr 2026 08:00:00 +0000

Type Values Removed Values Added
Title Reflected Cross‑Site Scripting in SourceCodester Sales and Inventory System 1.0 via msg Parameter

Mon, 06 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Fri, 03 Apr 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
Title Reflected XSS via msg Parameter in SourceCodester Sales and Inventory System 1.0

Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:sales_and_inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom sales And Inventory System

Tue, 31 Mar 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 31 Mar 2026 03:00:00 +0000

Type Values Removed Values Added
Title Reflected XSS via msg Parameter in SourceCodester Sales and Inventory System 1.0
Weaknesses CWE-79

Mon, 30 Mar 2026 16:00:00 +0000

Type Values Removed Values Added
Description A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the add_customer.php file via the "msg" parameter. The application fails to sanitize the input, allowing remote attackers to inject arbitrary web script or HTML via a crafted URL.
References

Subscriptions

Ahsanriaz26gmailcom Sales And Inventory System
Sourcecodester Sales And Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-04-06T13:44:54.882Z

Reserved: 2026-03-04T00:00:00.000Z

Link: CVE-2026-30558

cve-icon Vulnrichment

Updated: 2026-03-31T18:00:48.479Z

cve-icon NVD

Status : Modified

Published: 2026-03-30T16:16:05.417

Modified: 2026-04-06T14:16:24.023

Link: CVE-2026-30558

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-07T08:08:47Z

Weaknesses