Description
A vulnerability was found in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects the function create_generic_name of the file /ShowForm/create_generic_name/main. The manipulation of the argument generic_name results in cross site scripting. The attack may be launched remotely. The exploit has been made public and could 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 reported issue resides in the create_generic_name routine of the Pharmacy Sales and Inventory System. The generic_name input is accepted without proper sanitization, causing a reflected cross‑site scripting vulnerability. A remote attacker can inject arbitrary HTML or JavaScript into the page, which is executed in the context of users who view the response. This can lead to session hijacking, cookie theft, defacement, and other forms of client‑side compromise. The weakness is identified as CWE‑79 for XSS and CWE‑94 for input‑based code execution.

Affected Systems

The affected product is SourceCodester Pharmacy Sales and Inventory System version 1.0. No other versions or vendor variants are listed in the CVE data.

Risk and Exploitability

The CVSS score of 5.1 classifies the flaw as medium severity. The EPSS score is not available, limiting risk estimation, but the threat is still present because the exploit is publicly available and can be launched remotely from any network. The vulnerability is not listed in the CISA KEV catalog, yet attackers can still craft and deploy malicious payloads without intrusion. Overall, the risk is moderate but could be higher if the site is publicly accessible and receives user input without validation.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Pharmacy Sales and Inventory System to the latest vendor‑supplied patch or version that addresses the XSS in create_generic_name
  • Implement strict input validation and output encoding for the generic_name parameter to neutralise malicious payloads
  • Restrict access to the create_generic_name endpoint to authenticated and authorized users, ensuring proper authentication checks are enforced

Generated by OpenCVE AI on June 1, 2026 at 12:22 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 found in SourceCodester Pharmacy Sales and Inventory System 1.0. This vulnerability affects the function create_generic_name of the file /ShowForm/create_generic_name/main. The manipulation of the argument generic_name results in cross site scripting. The attack may be launched remotely. The exploit has been made public and could be used.
Title SourceCodester Pharmacy Sales and Inventory System main create_generic_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-01T13:02:30.931Z

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

Link: CVE-2026-10247

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-10247

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses