CVE-2026-112097 Details
Description
A vulnerability was found in SourceCodester Inventory System 1.0. This issue affects some unknown processing of the file /api/transactions_handler.php?action=save_sale of the component Sales Management Handler. The manipulation of the argument Hsn_Code results in cross site scripting. It is possible to launch the attack remotely.
A stored cross-site scripting vulnerability has been identified in SourceCodester Inventory System version 1.0. The issue arises in the Sales Management Handler within the file '/api/transactions_handler.php?action=save_sale'. The vulnerability is triggered by the 'Hsn_Code' parameter, allowing remote attackers to inject malicious scripts. The application fails to properly sanitize user input before saving it to the database, where it can be executed in the context of users who access the sales management page.
To address this vulnerability, input validation should be implemented to sanitize user inputs before storing them in the database. Additionally, DataTables should be configured to escape text properly, and server-side output encoding should be applied in PHP templates. Finally, the 'HttpOnly' flag should be set on session cookies to protect them from being accessed by injected scripts.
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-03-XSS-sales.md | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-112097 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/1012175 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/421921 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/421921/cti | [email protected] | Content 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