Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliveryNavigate to /ShowForm/create_supplier/main
-
ExploitSubmit crafted company_name with XSS payload
-
ExecutionPayload persisted in supplier record
-
PersistVictim authenticated user views supplier listing
-
ImpactMalicious script executes in victim's browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold a valid low-privilege account on the Pharmacy Sales and Inventory System (CVSS PR:L), meaning unauthenticated exploitation is not possible. Exploitation further requires user interaction (CVSS UI:R) - a second authenticated user must view the page or record where the injected payload is rendered. The vulnerable function is specifically create_supplier at the endpoint /ShowForm/create_supplier/main, so the system must have the supplier management module accessible to the attacker's role. The attack is scoped to unchanged scope (S:U), meaning the injected script executes only within the application's origin and cannot directly pivot to other systems. Limiting factors include: the requirement for two authenticated sessions (attacker and victim), a non-default scenario of a low-privilege user having create-supplier rights, and absence of confidentiality impact suggesting session token theft is not automatically guaranteed by the exploit. |
| Impact | The CVSS base score of 3.5 (Low) is grounded in a vector of AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N - network-accessible but requiring authenticated low-privileged access and victim interaction, with impact confined to integrity only. These constraints are real and meaningful: this is not an unauthenticated or zero-click attack. The temporal qualifiers reinforce a measured posture: E:P confirms a public POC exists, RL:X indicates no official remediation level has been assigned (consistent with absence of a vendor patch), and RC:R reflects reasonable but not fully confirmed confidence in the vulnerability. No EPSS data was provided, and the vulnerability is not listed in CISA KEV, so exploitation remains unconfirmed at scale. The public POC on GitHub (referenced via the exploit tag in references) reduces the skill bar for exploitation but does not change the prerequisite of authenticated access. Overall, this is a low-severity, real vulnerability with a credible but constrained exploitation path - prioritize based on whether untrusted users have access to supplier management functions. |
| Exploit ScenarioDerived | An attacker with a low-privilege account on the Pharmacy Sales and Inventory System navigates to the supplier creation form and submits a crafted company_name value containing a malicious JavaScript payload (e.g., an XSS string that exfiltrates session cookies). The payload is stored in the supplier record and later rendered without encoding to another authenticated user - such as a pharmacist or administrator - who views the supplier list, triggering the script execution in their browser context. A public POC for this technique exists at https://github.com/timeflies123/cve/issues/3, providing a working reference for the injection vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Pharmacy Sales And Inventory System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
1DescriptionCVE.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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
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 execu
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
EUVD-2026-33618
GHSA-4j5r-6h7v-59cc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB