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 flaw has been found in SourceCodester Pharmacy Sales and Inventory System 1.0. Affected by this issue is the function create_supplier of the file /ShowForm/create_supplier/main. Executing a manipulation of the argument company_name can lead to cross site scripting. The attack can be launched remotely. The exploit has been published and may be used.
AnalysisAI
Stored or reflected cross-site scripting (XSS) in SourceCodester Pharmacy Sales and Inventory System 1.0 allows a remote, low-privileged attacker to inject arbitrary JavaScript via the company_name argument in the create_supplier function at /ShowForm/create_supplier/main. Successful exploitation requires a victim user to interact with the malicious content, limiting blast radius, but the CVSS temporal metric confirms a proof-of-concept exploit is publicly available via GitHub. No active exploitation has been identified in CISA KEV, though the low attack complexity and public POC make this a credible risk for unpatched deployments handling sensitive pharmaceutical inventory data.
Technical ContextAI
CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause - the application fails to sanitize or encode user-supplied input before rendering it in the browser. The vulnerable endpoint is the supplier creation form at /ShowForm/create_supplier/main, specifically the company_name parameter processed by the create_supplier function. The CPE cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* covers all sub-versions of the 1.0 release with no upper bound specified, indicating the entire product line is affected. SourceCodester is a known publisher of open-source PHP-based management systems frequently studied and disclosed via VulDB; these systems typically lack a formal SDLC or security review process, making input validation gaps common. The XSS payload is likely persisted in a supplier record and rendered to any user viewing supplier listings.
RemediationAI
No vendor-released patch has been identified at time of analysis - the CVSS remediation level is not defined (RL:X) and no patched version is referenced in any advisory. Operators should immediately apply output encoding to the company_name field before rendering it in HTML context; for PHP-based applications this means using htmlspecialchars() or equivalent at all display points. Input validation should reject or sanitize HTML metacharacters (<, >, ", ', &) at the point of entry in the create_supplier function. As a compensating control, restrict access to the /ShowForm/create_supplier/main endpoint to only trusted internal administrator roles via firewall or application-layer access control - this directly addresses the PR:L requirement and eliminates the attack surface for lower-privilege users. A Content Security Policy (CSP) header disabling inline script execution (script-src 'self') would reduce XSS impact even if the injection succeeds, though it may require application-level changes to support. Monitor VulDB at https://vuldb.com/vuln/367523 and the SourceCodester site at https://www.sourcecodester.com/ for future patch releases.
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-33618
GHSA-4j5r-6h7v-59cc