Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the add_sales.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: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Reflected Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

A reflected cross‑site scripting flaw exists in the sales component of the SourceCodester Sales and Inventory System. An attacker can craft a URL containing malicious JavaScript or HTML in the msg parameter, which the system echoes back to the browser without proper encoding or sanitization. When a user visits the link, the injected code runs in the victim’s browser, allowing the attacker to steal session cookies, deface the page, or inject further malicious payloads.

Affected Systems

The vulnerability affects the SourceCodester Sales and Inventory System, specifically the add_sales.php component in version 1.0.

Risk and Exploitability

The attack vector is a simple HTTP request to the add_sales.php page with a user‑controlled msg parameter, and no authentication is required to trigger it. Because the flaw is readily exploitable through a crafted link, the risk to any user who follows such a link is high. No CVSS score is provided, but the scenario aligns with typical reflected XSS severity, providing a tool for attackers to harvest credentials or manipulate user data. The EPSS score is unavailable and the issue is not in the CISA KEV catalog. Nonetheless, the potential impact on confidentiality, integrity, and availability of the application’s users is significant.

Generated by OpenCVE AI on March 30, 2026 at 17:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Sanitize or encode the msg parameter before it is echoed back to the client.
  • Upgrade to a newer release of the SourceCodester application that includes input validation for all user input.
  • Deploy a Content Security Policy to prevent execution of inline scripts.
  • Consider a WAF rule that blocks suspicious XSS payloads in query strings.

Generated by OpenCVE AI on March 30, 2026 at 17:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 31 Mar 2026 18:30: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'}


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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-03-31T18:05:55.564Z

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

Link: CVE-2026-30559

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

Modified: 2026-03-31T18:16:48.213

Link: CVE-2026-30559

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-30T20:56:24Z

Weaknesses