CVE-2026-112095

SourceCodester Inventory System Product Management products_handler.php save cross site scripting

Published Oct 19, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Oct 22, 2026, 2:37 AM
Reserved
Oct 18, 2026, 5:10 PM
Status
Deferred
Published
Oct 19, 2026, 9:17 AM
Modified
Oct 22, 2026, 3:16 AM