CVE-2026-30561

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_purchase.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 located in the add_purchase.php file of SourceCodester Sales and Inventory System 1.0. Attackers can embed arbitrary JavaScript or HTML in the msg query parameter, which the application outputs without escaping. This allows malicious scripts to run in the context of a victim's browser session, potentially leading to session hijacking, cookie theft, or defacement.

Affected Systems

The flaw affects the free, open‑source Sales and Inventory System released under the SourceCodester brand, version 1.0. No official vendor or patched release is listed, so users must protect themselves until an update becomes available.

Risk and Exploitability

With a CVSS score of 6.1 and an EPSS under 1 %, the risk is moderate but still noteworthy. The attack vector is local to a victim who clicks a crafted URL, making it feasible for targeted phishing campaigns. Because it is not listed in CISA’s KEV catalog, there is no current evidence of widespread exploitation, yet the vulnerability remains actionable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Escalate all user‑supplied input to output encoding or sanitize the "msg" parameter before rendering.
  • Implement a Content Security Policy to restrict execution of inline scripts and limit allowed script sources.
  • Upgrade to a patched version of SourceCodester Sales and Inventory System if one is released.
  • If no patch is available, remove or block the vulnerable endpoint from public access paths.
  • Monitor web application logs for suspicious activity and apply rate limiting on the add_purchase endpoint.

Generated by OpenCVE AI on April 6, 2026 at 16:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Reflected XSS Vulnerability in SourceCodester 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'}

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 Vulnerability in SourceCodester Sales and Inventory System
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 1.0
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': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Title Reflected XSS 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_purchase.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:45 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Modified
Published
Mar 30, 2026, 4:16 PM
Modified
Jun 17, 2026, 10:32 AM