CVE-2026-7200

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

Published Apr 27, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
A flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this issue is some unknown functionality of the file /index.php?page=types. Executing a manipulation of the argument ID can lead to cross site scripting. It is possible to launch the attack remotely. The exploit has been published and may be used.

Analysis

AI-generated

Technical impact

The vulnerability permits reflected cross‑Site Scripting through manipulation of the ID parameter in /index.php?page=types. An attacker can embed malicious JavaScript directly in the URL; the application echoes the value in the page without sanitization. When a user visits the crafted link, the script runs in the victim’s browser, enabling data theft, session hijacking, or defacement. This flaw is client‑side and does not grant remote code execution on the server.

Affected Systems

SourceCodester Pharmacy Sales and Inventory System 1.0, running on an unspecified platform.

Risk and Exploitability

The CVSS score of 5.3 indicates medium severity. EPSS information is not available, and the issue is not listed in CISA's Known Exploited Vulnerabilities catalog. The flaw can be triggered remotely via a typical HTTP GET request; the attacker only needs to supply a malicious ID string. An exploit remains publicly available, so the risk of exploitation is considered low to moderate.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a vendor patch or upgrade to a version where the XSS flaw is fixed
  • Sanitize or perform output encoding on the ID parameter before it is incorporated into any page content
  • Configure the web server to send X‑XSS‑Protection or Content‑Security‑Policy headers to reduce the impact of reflected XSS

Generated by OpenCVE AI on April 28, 2026 at 12:41 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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this issue is some unknown functionality of the file /index.php?page=types. Executing a manipulation of the argument ID can lead to cross site scripting. It is possible to launch the attack remotely. The exploit has been published and may be used.
Title SourceCodester Pharmacy Sales and Inventory System index.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

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

cvssV3_0

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

cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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 28, 2026, 1:15 PM
Reserved
Apr 27, 2026, 1:52 PM
Status
Deferred
Published
Apr 28, 2026, 12:16 AM
Modified
Jul 24, 2026, 8:10 AM