Description
A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is the function create_medicine_name of the file /ShowForm/create_medicine_name/main. Performing a manipulation of the argument medicine_name results in cross site scripting. The attack can be initiated remotely. The exploit is now public and may be used.
Published: 2026-06-01
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw resides in the create_medicine_name routine of the Pharmacy Sales and Inventory System, where an attacker can control the medicine_name argument. By supplying malicious script payloads, the vulnerable code reflected the input without proper encoding, resulting in a stored or reflected cross‑site scripting vulnerability. An attacker could, for example, inject JavaScript that steals session cookies, defaces the interface, or redirects users to phishing sites. The weakness is typical of CWE‑79 (XSS) and exploits improper input validation.

Affected Systems

Only version 1.0 of SourceCodester Pharmacy Sales and Inventory System is known to be affected. The system is delivered by SourceCodester and is used in pharmacies to manage drug inventory and sales.

Risk and Exploitability

The CVSS score of 5.1 indicates a moderate severity. No EPSS value was reported, and the flaw is not listed in CISA’s KEV catalog, yet the vulnerability is publicly exploitable via a remote HTTP request to the create_medicine_name endpoint. No authentication is required; any user able to access the form can trigger the payload. Because the flaw relies on user input, attackers may craft malicious requests without needing privileged credentials.

Generated by OpenCVE AI on June 1, 2026 at 12:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Ensure the latest version of the Pharmacy Sales and Inventory System is installed, as the vendor has addressed this flaw in newer releases.
  • Implement robust server‑side validation for the medicine_name field: strip or encode any HTML or JavaScript before rendering, and restrict allowed characters to a safe subset (e.g., alphanumerics, hyphens).
  • Deploy a Content‑Security‑Policy that disables inline script execution and enforces trusted sources for scripts to mitigate the effects of any residual XSS payloads.

Generated by OpenCVE AI on June 1, 2026 at 12:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 11:00:00 +0000

Type Values Removed Values Added
Description A vulnerability was detected in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this vulnerability is the function create_medicine_name of the file /ShowForm/create_medicine_name/main. Performing a manipulation of the argument medicine_name results in cross site scripting. The attack can be initiated remotely. The exploit is now public and may be used.
Title SourceCodester Pharmacy Sales and Inventory System main create_medicine_name cross site scripting
First Time appeared Sourcecodester
Sourcecodester pharmacy Sales And Inventory System
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester pharmacy Sales And 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 Pharmacy Sales And Inventory System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-06-01T14:21:31.866Z

Reserved: 2026-05-31T10:15:09.831Z

Link: CVE-2026-10244

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-06-01T11:16:23.340

Modified: 2026-06-01T13:14:43.470

Link: CVE-2026-10244

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-01T12:30:28Z

Weaknesses