CVE-2026-7269

SourceCodester Pharmacy Sales and Inventory System index.php cross site scripting

Published Apr 28, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected is an unknown function of the file /index.php?page=product. Performing a manipulation of the argument ID results in cross site scripting. It is possible to initiate the attack remotely. The exploit has been made public and could be used.

Analysis

AI-generated

Technical impact

A content‑injection flaw exists in the Pharmacy Sales and Inventory System when the identifier parameter in the product page is manipulated. The vulnerability permits unencoded user input to be reflected in the page, enabling an attacker to inject arbitrary script that runs in the context of the victim’s browser. This can lead to credential theft, defacement, or session hijacking for the affected user. The weakness corresponds to CWE‑79 and CWE‑94, indicating improper input handling and potential code execution.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System, version 1.0. Only the index.php file handling the page=product controller is vulnerable; no other products or versions are identified as affected.

Risk and Exploitability

The CVSS score of 4.8 reflects a moderate severity for an XSS vulnerability that requires only remote access to the vulnerable page. The EPSS score is not available, so the likelihood of exploitation is unclear, but public exploit code has been released, indicating the vulnerability is active. It is not listed in the CISA KEV catalog. Attackers can exploit this remotely by crafting a crafted request to /index.php?page=product with a specially‑encoded ID parameter, injecting script that retrieves user credentials or accesses other resources within the same domain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Deploy any vendor‑issued patch for Pharmacy Sales and Inventory System as soon as it becomes available
  • Sanitize and validate the ID query parameter before echoing it in the page, ensuring all output is properly encoded for HTML context
  • Implement a Content Security Policy that disallows inline scripts or restricts script sources to trusted domains to mitigate the impact of any residual XSS

Generated by OpenCVE AI on April 28, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Type Values Removed Values Added
Description A vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected is an unknown function of the file /index.php?page=product. Performing a manipulation of the argument ID results in cross site scripting. It is possible to initiate the attack remotely. The exploit has been made public and could be used.
Title SourceCodester Pharmacy Sales and Inventory System index.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

{'score': 3.3, 'vector': 'AV:N/AC:L/Au:M/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 2.4, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 2.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-79

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

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 29, 2026, 2:22 PM
Reserved
Apr 28, 2026, 5:25 AM
Status
Deferred
Published
Apr 28, 2026, 1:19 PM
Modified
Oct 26, 2026, 9:10 PM