Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0 in the view_sales.php file via the "limit" 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-27
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Remote Script Execution via Web Browser
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a reflected cross‑site scripting flaw that occurs in the Inventory System’s view_sales.php page. The application accepts a "limit" query parameter but does not sanitize its value, allowing an attacker to embed arbitrary JavaScript or HTML into a crafted URL. When a victim navigates to the malicious link, the embedded code executes within the victim’s browser, giving the attacker the ability to hijack sessions, deface the site, or perform other client‑side attacks.

Affected Systems

SourceCodester Inventory System 1.0 contains the affected code in its view_sales.php file. Deployments of this version that expose the limit parameter are susceptible; any user who accesses the view_sales page with a crafted limit query will face the risk.

Risk and Exploitability

Because the flaw is reflected and operates purely via a URL, it can be exploited remotely when a user clicks or otherwise loads the malicious link. The official reference indicates no KEV reporting, so the vulnerability has not yet been catalogued as a known exploited incident by CISA. EPSS data is unavailable, which does not preclude potential exploitation but does not indicate a high likelihood. The CVSS score is not provided, yet the ability to run arbitrary client‑side code represents a high impact on confidentiality and integrity for the victim’s session.

Generated by OpenCVE AI on March 27, 2026 at 18:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check for and apply any vendor‑issued updates for SourceCodester Inventory System 1.0.
  • Validate and encode all user-supplied values for the limit parameter so no script or HTML can be reflected.
  • Implement a Content Security Policy that restricts executable scripts to trusted sources.

Generated by OpenCVE AI on March 27, 2026 at 18:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 30 Mar 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester inventory System
Vendors & Products Sourcecodester
Sourcecodester inventory System

Fri, 27 Mar 2026 20:30:00 +0000

Type Values Removed Values Added
Title Reflected XSS via limit parameter in Inventory System
Weaknesses CWE-79

Fri, 27 Mar 2026 17:00:00 +0000

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

Subscriptions

Sourcecodester Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-03-30T14:35:46.021Z

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

Link: CVE-2026-30570

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-27T17:16:28.597

Modified: 2026-03-30T13:26:29.793

Link: CVE-2026-30570

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-30T08:00:06Z

Weaknesses