---
id: "CVE-2026-112097"
kind: "vulnerability"
aliases: ["CVE-2026-112097"]
title: "SourceCodester Inventory System: Hsn_Code parameter enables cross-site scripting"
severity: "medium"
cvss: 5.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["inventory-system", "other", "php", "self-hosted"]
not_affected_if: ["other-product"]
published_at: "2026-10-19T09:17:07+00:00"
first_seen_at: "2026-10-23T21:57:17+00:00"
updated_at: "2026-10-25T04:29:10+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112097", "first_seen_at": "2026-10-23T21:57:17+00:00"}]
---

# SourceCodester Inventory System: Hsn_Code parameter enables cross-site scripting

The Sales Management handler of SourceCodester Inventory System 1.0 does not sanitize the Hsn_Code argument sent to /api/transactions_handler.php?action=save_sale. An attacker can inject script that runs in the browser of a user who views the affected page.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- unknown

## Fix

- unknown

## Timeline

- 2026-10-23T21:57:17+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-112097

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
