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.
Published: 2026-10-19
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting that can be triggered via the Hsn_Code parameter of /api/transactions_handler.php?action=save_sale, allowing an attacker to inject arbitrary script into pages viewed by other users
Action: Patch or Mitigate
AI Analysis

Impact

The vulnerability arises from insufficient sanitization of the Hsn_Code argument in a sales transaction handler. When an attacker supplies crafted input, the value is reflected or stored without proper encoding, enabling the injection of malicious scripts. If an attacker succeeds, they can execute code in the context of a victim’s browser session, potentially hijacking cookies, defacing the interface, or exfiltrating sensitive data. This is a classic cross‑site scripting flaw (CWE‑79) that can be abused when the application renders the value of Hsn_Code in a response page.

Affected Systems

SourceCodester Inventory System, version 1.0, is affected. The issue is present in the component that handles the save_sale action via the API endpoint /api/transactions_handler.php. No other versions or product lines are listed as vulnerable in the provided data.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate risk level, and the EPSS score is not available, so the likelihood of exploitation is unknown. The vulnerability is not included in the CISA KEV catalog. The attack requires remote interaction with the web application and the ability to supply a custom Hsn_Code parameter, a scenario that is typically viable for web‑based applications exposed to the internet. Given that the flaw involves user‑controlled input, the exploitation path is straightforward for an attacker with knowledge of the vulnerable endpoint.

Generated by OpenCVE AI on October 19, 2026 at 10:33 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Ensure that the latest release of SourceCodester Inventory System is applied if the vendor has issued a patch for the save_sale handler; if a patch is unavailable, procure the vendor’s official update channel to obtain the fix.
  • Validate and sanitize the Hsn_Code parameter on the server side, rejecting or stripping any characters that could form JavaScript code, thereby preventing malicious payload delivery.
  • Apply output encoding or escaping when rendering the value of Hsn_Code in any HTML context, ensuring that all user‑supplied data is treated as plain text rather than executable script.

Generated by OpenCVE AI on October 19, 2026 at 10:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
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.
Title SourceCodester Inventory System Sales Management transactions_handler.php save_sale 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:ND/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:X/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:X/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:X'}


Subscriptions

Sourcecodester Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-19T16:36:07.532Z

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

Link: CVE-2026-112097

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-19T15:16:45.150

Link: CVE-2026-112097

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T16:00:13Z

Weaknesses
  • CWE-79

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

  • CWE-94

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