CVE-2026-30556

Reflected XSS via msg Parameter in SourceCodester Sales and Inventory System 1.0

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 index.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 vulnerability is a reflected cross‑site scripting flaw found in the index.php file of SourceCodester Sales and Inventory System version 1.0. The application does not sanitize the "msg" query parameter, allowing attackers to inject arbitrary JavaScript or HTML when they visit a crafted URL. Consequently, a malicious user could execute scripts in the victim's browser, potentially stealing session cookies, defacing the site, or redirecting users to phishing pages.

Affected Systems

Affected systems are the SourceCodester Sales and Inventory System 1.0 web application, specifically the index.php handler that processes the "msg" parameter. The product is identified by the CPE string cpe:2.3:a:ahsanriaz26gmailcom:sales_and_inventory_system:1.0. No other versions or vendors are currently listed as affected.

Risk and Exploitability

The CVSS base score of 6.1 indicates a medium impact, while the EPSS score of less than 1% suggests that very few attackers have exploited this flaw so far. The vulnerability is not catalogued in CISA’s KEV list. An attacker can trigger the flaw simply by visiting a malicious URL, meaning the attack does not require authentication or privileged access. While the likelihood of exploitation is low, the potential for client‑side compromise warrants caution, especially if users visit suspicious links.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SourceCodester Sales and Inventory System to a version that sanitizes the 'msg' parameter or applies output encoding.
  • If an update is not immediately possible, implement server‑side input validation and HTML encoding for the 'msg' parameter in index.php.
  • Deploy a web application firewall rule to detect and block script or HTML payloads in the 'msg' query string.
  • Instruct users to bookmark legitimate URLs and be wary of suspicious links.
  • Regularly monitor application logs for attempts to inject malicious scripts via the 'msg' parameter.

Generated by OpenCVE AI on April 2, 2026 at 03:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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
Title Reflected XSS in SourceCodester Sales and Inventory System via msg Parameter
First Time appeared Sourcecodester
Sourcecodester sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester sales And Inventory System
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Metrics 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
Title Reflected XSS in SourceCodester Sales and Inventory System via msg Parameter
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 index.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
Mar 31, 2026, 6:05 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Analyzed
Published
Mar 30, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:32 AM