Description
A flaw has been found in SourceCodester Inventory System 1.0. This affects an unknown part of the file /api/products_handler.php?action=save of the component Product Management. Executing a manipulation of the argument Product_Id/Product_Name can lead to cross site scripting. The attack may be performed from remote. The exploit has been published and may be used.
Published: 2026-10-19
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting via unsanitized product parameters
Action: Apply Patch
AI Analysis

Impact

The vulnerability is a cross‑site scripting flaw in the Product Management component of SourceCodester Inventory System. The flaw exists in the products_handler.php script, specifically the action=save endpoint, where user‑controlled parameters Product_Id and Product_Name are insufficiently sanitized. Attackers can inject arbitrary HTML or JavaScript that will be rendered in the browser of any user who views the affected page, allowing theft of session cookies or execution of code in the victim’s context (CWE‑79). The flaw is also associated with CWE‑94, indicating unsafe use of user‑supplied input in a code execution context.

Affected Systems

SourceCodester Inventory System is the only product identified as vulnerable. The flaw exists in the API endpoint /api/products_handler.php for the action=save operation within the Product Management component. No other version ranges are listed; thus any deployment of Inventory System that includes this endpoint is affected.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity, and no EPSS value is available. The vulnerability is not listed in the CISA KEV catalog, but an exploit is publicly available on GitHub and other portals, indicating that malicious actors can launch the attack from a remote location. The lack of a mitigation allows an unauthenticated attacker to inject XSS that persists for all users who load the affected page, posing a significant risk for environments with sensitive data or user activity. Remediation requires updating the product or applying a vendor patch.

Generated by OpenCVE AI on October 19, 2026 at 09:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a patched version of SourceCodester Inventory System that addresses the XSS flaw.
  • If a patch is unavailable, sanitize or encode values of Product_Id and Product_Name before rendering them, ensuring they are not interpreted as HTML or JavaScript.
  • Audit all user input handling in the Product Management component to confirm that output is safely escaped and that similar XSS risks are mitigated.

Generated by OpenCVE AI on October 19, 2026 at 09:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 08:45:00 +0000

Type Values Removed Values Added
Description A flaw has been found in SourceCodester Inventory System 1.0. This affects an unknown part of the file /api/products_handler.php?action=save of the component Product Management. Executing a manipulation of the argument Product_Id/Product_Name can lead to cross site scripting. The attack may be performed from remote. The exploit has been published and may be used.
Title SourceCodester Inventory System Product Management products_handler.php save cross site scripting
First Time appeared Sourcecodester
Sourcecodester inventory System
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:sourcecodester:inventory_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester inventory System
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Sourcecodester Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-19T08:15:16.628Z

Reserved: 2026-10-18T17:10:03.339Z

Link: CVE-2026-112095

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-19T09:17:07.400

Modified: 2026-10-19T09:17:07.400

Link: CVE-2026-112095

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T10:00:15Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')