Severity by source
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. This affects the function create_medicine_presentation of the file /ShowForm/create_medicine_presentation/main. The manipulation of the argument medicine_presentation leads to cross site scripting. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.
AnalysisAI
Stored or reflected cross-site scripting in SourceCodester Pharmacy Sales and Inventory System 1.0 allows a low-privileged authenticated remote attacker to inject malicious JavaScript via the medicine_presentation argument in the create_medicine_presentation function at /ShowForm/create_medicine_presentation/main. Exploitation requires a victim user to interact with the affected page, limiting blast radius but still enabling session hijacking, credential theft, or UI redirection against authenticated users. Publicly available exploit code exists per a GitHub issue disclosure; no CISA KEV listing is present.
Technical ContextAI
The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), indicating that user-supplied input in the medicine_presentation parameter is not adequately sanitized or encoded before being rendered in the HTML response. The affected product, identified via CPE cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:*, is a PHP-based web application distributed by SourceCodester - a platform known for publishing open-source academic/demo projects frequently targeted due to minimal security hardening. The vulnerable endpoint /ShowForm/create_medicine_presentation/main processes medicine presentation form submissions, and the lack of output encoding allows injected script tags or event handlers to execute in a victim's browser context.
RemediationAI
No vendor-released patch has been identified at the time of analysis - the SourceCodester project page (https://www.sourcecodester.com/) does not publish a security advisory or patched release. The upstream fix, if any, is not independently confirmed from the available references. As a primary compensating control, operators should implement strict server-side input validation and context-aware output encoding (HTML entity encoding) on all user-supplied values processed by the create_medicine_presentation function, particularly the medicine_presentation parameter. Deploying a Web Application Firewall (WAF) with XSS filtering rules can reduce exploitation likelihood but introduces a risk of bypass and should not be treated as a complete fix. Restricting access to the /ShowForm/create_medicine_presentation/main endpoint to trusted internal networks or specific authenticated roles limits attack surface, with the trade-off of reduced functionality for legitimate remote users. Organizations running this application in production should evaluate whether the codebase meets their security baseline given its origins as a demo project.
Pharmacy Sales And Inventory System v1.0 is vulnerable to SQL Injection via /pharmacy-sales-and-inventory-system/manage_
Unauthenticated remote information disclosure in SourceCodester Pharmacy Sales and Inventory System 1.0 allows network-b
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 exposes the `/ajax.php?action=save_product` endp
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to read,
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to execu
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows remote unauthenticated attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to extra
SQL injection in SourceCodester Pharmacy Sales and Inventory System 1.0 allows unauthenticated remote attackers to execu
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-33620
GHSA-cvf2-cgfw-jqr4