CVE-2026-30558

Reflected Cross‑Site Scripting in SourceCodester Sales and Inventory System 1.0 via msg Parameter

Published Mar 30, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Title Reflected Cross‑Site Scripting in SourceCodester Sales and Inventory System 1.0 via msg Parameter
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'}

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System
Type Values Removed Values Added
Title Reflected XSS via msg Parameter in SourceCodester Sales and Inventory System 1.0
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
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'}

Type Values Removed Values Added
Title Reflected XSS via msg Parameter in SourceCodester Sales and Inventory System 1.0
Weaknesses CWE-79
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
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 6, 2026, 1:44 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Modified
Published
Mar 30, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:32 AM