CVE-2026-30569

Reflected XSS via limit parameter in Inventory System view_stock_availability

Published Mar 27, 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 view_stock_availability.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.

Analysis

AI-generated

Technical impact

The vulnerability is a reflected XSS that occurs when the application accepts an unsanitized value for the ‘limit’ parameter in view_stock_availability.php. Attackers can send a crafted URL that includes malicious JavaScript or HTML, which is then rendered in the victim’s browser. This flaw allows execution of arbitrary client‑side code, enabling session hijacking, defacement, or phishing, and corresponds to CWE‑79.

Affected Systems

The affected system is the SourceCodester Sales and Inventory System 1.0, specifically the module that processes the limit query variable. The public CPE identifies the product as inventory_system version 1.0. No alternative vendors or versions are listed, so any deployment matching that version is potentially vulnerable.

Risk and Exploitability

The overall risk is moderate with a CVSS composition indicating that the issue can be triggered remotely without authentication. The EPSS figure suggests that few attacks are expected to target this flaw at present, and it is not yet in the known‑exploited list. Nevertheless, because the vulnerability requires only a malicious link, users browsing the system may have their browsers compromised, so a high‑priority patch or mitigation should be applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply latest patch if vendor releases an update that sanitizes the limit parameter.
  • If no patch, validate and sanitize the limit input so that only numeric values are accepted and enforce length limits.
  • Deploy a web application firewall rule that rejects requests containing script tags or suspicious payloads in the limit query.
  • Add a Content Security Policy header that disallows inline scripts and restricts script sources to known domains.
  • Monitor web server logs for anomalous requests and investigate any that contain potential XSS payload.

Generated by OpenCVE AI on April 6, 2026 at 17:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Reflected XSS via limit parameter in Inventory System view_stock_availability
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
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'}

ssvc

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

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 via limit Parameter in Inventory System
Type Values Removed Values Added
First Time appeared Ahsanriaz26gmailcom
Ahsanriaz26gmailcom inventory System
CPEs cpe:2.3:a:ahsanriaz26gmailcom:inventory_system:1.0:*:*:*:*:*:*:*
Vendors & Products Ahsanriaz26gmailcom
Ahsanriaz26gmailcom inventory System
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
Description A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0. The vulnerability is located in the view_stock_availability.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. A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Sales and Inventory System 1.0. The vulnerability is located in the view_stock_availability.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.
Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester inventory System
Vendors & Products Sourcecodester
Sourcecodester inventory System
Type Values Removed Values Added
Title Reflected XSS via limit Parameter in Inventory System
Weaknesses CWE-79
Type Values Removed Values Added
Description A Reflected Cross-Site Scripting (XSS) vulnerability exists in SourceCodester Inventory System 1.0. The vulnerability is located in the view_stock_availability.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
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:46 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Modified
Published
Mar 27, 2026, 5:16 PM
Modified
Nov 11, 2026, 7:10 PM