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.
Published: 2026-10-19
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting (XSS)
Action: Apply Patch
AI Analysis

Impact

The SourceCodester Inventory System 1.0 contains a vulnerability that allows an attacker to inject arbitrary JavaScript by supplying malicious content in the Product_Name, Product_Code, or Vendor_Name fields during the save_purchase action. This form of cross‑site scripting enables the attacker to execute code within the browser of any user who later views the affected purchase record, potentially leading to credential theft, session hijacking, or defacement. The impact is confined to client‑side code execution and does not directly modify or disclose server‑side data.

Affected Systems

The vulnerability applies specifically to SourceCodester Inventory System 1.0 as released on the SourceCodester website. It is triggered via the /api/transactions_handler.php endpoint when performing the action=save_purchase operation. No other product versions have been identified as affected, and the vendor has not issued a fixed release at the time of this report.

Risk and Exploitability

The CVSS score of 5.1 places the flaw in the medium severity range, and the EPSS score is currently unavailable. The flaw is publicly disclosed and can be triggered remotely by crafting an HTTP request to the vulnerable endpoint, meaning an attacker does not need prior authentication or network access. Although the vulnerability is not listed in the CISA KEV catalog, the public availability of the exploit and the ease of triggering it from outside the network make it a moderate risk that should be addressed promptly.

Generated by OpenCVE AI on October 19, 2026 at 09:20 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update SourceCodester Inventory System to a patched release or apply the vendor’s security fix when it becomes available
  • Implement server‑side input validation and output encoding for the Product_Name, Product_Code, and Vendor_Name fields to prevent unsanitized data from reaching the browser
  • Deploy a web application firewall or enforce rate limiting on the /api/transactions_handler.php endpoint to detect and block malicious payloads

Generated by OpenCVE AI on October 19, 2026 at 09:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 08:45:00 +0000

Type Values Removed Values Added
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.
Title SourceCodester Inventory System Purchase Records transactions_handler.php save_purchase 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:POC/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:P/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:P/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:P'}


Subscriptions

Sourcecodester Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-19T16:50:09.536Z

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

Link: CVE-2026-112096

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-112096

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')