CVE-2026-112095
Received Received - Intake

Cross-Site Scripting in Inventory System 1.0

Vulnerability report for CVE-2026-112095, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-19

Last updated on: 2026-10-19

Assigner: VulDB

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-19
Last Modified
2026-10-19
Generated
2026-10-19
AI Q&A
2026-10-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
SourceCodester Inventory System 1.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a Stored Cross-Site Scripting (XSS) vulnerability in SourceCodester Inventory System 1.0. It occurs in the Product Management component where user input for Product_Id or Product_Name is not properly sanitized when saving a product via the /api/products_handler.php?action=save endpoint. The malicious script is stored in the database and later executed in users' browsers when they visit the /products.php page.

Detection Guidance

To detect this XSS vulnerability, inspect the /api/products_handler.php?action=save endpoint for unsanitized Product_Id and Product_Name parameters. Check if user input is reflected in /products.php without proper HTML encoding. Use browser developer tools to inspect network requests and responses for stored payloads. Test by injecting a simple XSS payload like <script>alert(1)</script> in these fields and verify if it executes when the page loads.

  • Check PHP code for missing htmlspecialchars() calls when outputting database values.
  • Verify if DataTables uses innerHTML without text escaping in /assets/js/app.js.
  • Inspect session cookie for missing HttpOnly flag using browser dev tools.
Impact Analysis

An attacker can inject malicious scripts that execute when users visit the products page. This could lead to session cookie theft via document.cookie, allowing full account takeover without credentials. Attackers could access sensitive data like customer PII or financial records and modify or delete records.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating GDPR's data protection requirements and HIPAA's safeguards for protected health information. It may result in data breaches, unauthorized disclosures, and failure to maintain data integrity and confidentiality.

Mitigation Strategies

Apply server-side output encoding using htmlspecialchars() for all user-supplied data rendered in PHP. Update DataTables to use text escaping functions instead of innerHTML. Set HttpOnly, Secure, and SameSite flags on the session cookie. Sanitize Product_Id and Product_Name inputs before saving to the database.

  • Patch the /api/products_handler.php file to encode outputs and sanitize inputs.
  • Modify /assets/js/app.js to use DataTables' text escaping methods.
  • Update PHP session configuration to enforce HttpOnly and Secure cookie attributes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-112095. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart