CVE-2026-112096 Details
Description
A vulnerability has been found in SourceCodester Inventory System 1.0. This vulnerability affects unknown code of the file /api/transactions_handler.php?action=save_purchase of the component Purchase Records Handler. The manipulation of the argument Product_Name/Product_Code/Vendor_Name leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
A stored cross-site scripting vulnerability has been identified in SourceCodester Inventory System version 1.0. The issue arises in the Purchase Records Handler within the file '/api/transactions_handler.php?action=save_purchase'. The vulnerability allows for the injection of malicious scripts through the 'Product_Name', 'Product_Code', and 'Vendor_Name' parameters. These injected scripts are then executed in the browsers of users who access the '/purchases.php' page. The vulnerability can be exploited remotely by authenticated users, including those with low privileges.
It is recommended to sanitize user inputs by encoding them before storage, use DataTables' text escaping features, apply server-side output encoding in PHP templates, and set the HttpOnly flag on session cookies.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 19, 2026CISA-ADP
Assessed Oct 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Mohnad-AL-saif/MyCVEs/blob/main/VulDB/Inventory-System/CVE-02-XSS-purchases.md | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-112096 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1012166 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/421920 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/421920/cti | [email protected] | AdvisoryContent Wall |
| https://www.sourcecodester.com/ | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| SourceCodester Inventory System | 1.0 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Modified | CISA-ADP |
| Oct 19, 2026 | New CVE Received | [email protected] |
Volerion