Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
DeliverySubmit crafted medicine_name XSS payload
-
ExploitPayload stored or reflected in application
-
ExecutionAdministrator or privileged user loads affected page
-
PersistMalicious script executes in victim browser
-
ImpactSession token stolen or victim action hijacked
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 be authenticated with at least a low-privilege account on the application (PR:L per CVSS 4.0 vector) - unauthenticated exploitation is not supported by the available data. A second authenticated user must passively load or view the page where the injected |
| Impact | The CVSS 4.0 base score of 2.0 is low, driven by the constrained impact metrics: no confidentiality impact (VC:N/SC:N), only low integrity impact on the vulnerable system (VI:L), and no availability impact. The attack requires low privileges (PR:L) and passive user interaction from a second party (UI:P), meaning exploitation is not fully autonomous - an attacker cannot independently trigger the payload without a victim loading the page. No EPSS score was provided in the source data and cannot be assessed. The vulnerability is not listed in CISA KEV, so no confirmed active exploitation is on record. However, a publicly available proof-of-concept exists (confirmed by the GitHub reference and the CVSS E:P supplemental metric), which meaningfully lowers attacker skill requirements. In realistic multi-user pharmacy deployments where clerks or untrusted staff can create medicine records reviewed by administrators, the XSS payload could be used for session hijacking or credential phishing - risks disproportionate to the raw CVSS score in that context. Risk is best characterized as low in single-user or tightly access-controlled deployments and moderate in shared-user environments. |
| Exploit ScenarioDerived | A low-privileged authenticated user - such as a pharmacy inventory clerk - submits a medicine name entry containing an injected JavaScript payload (e.g., a script tag or event-handler attribute) via the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Cross-site scripting in SourceCodester Pharmacy Sales and Inventory System 1.0 allows a low-privileged authenticated attacker to inject malicious JavaScript via the medicine_name parameter at the /ShowForm/create_medicine_name/main endpoint, executing arbitrary scripts in the browsers of other users who view the affected page. The CVSS 4.0 score of 2.0 reflects a narrow impact profile - no confidentiality loss and only low integrity impact - but a publicly available proof-of-concept exploit exists (E:P), lowering the barrier to abuse in multi-user deployments such as shared pharmacy management environments. No active exploitation has been confirmed via CISA KEV.
RemediationAI
No vendor-released patch has been identified at time of analysis; SourceCodester open-source applications are typically provided without formal patch channels. The direct fix is to apply output encoding - in PHP, wrapping the medicine_name value with htmlspecialchars() before rendering it in any HTML context eliminates the CWE-79 root cause without functional side effects. As a compensating control, restrict access to the /ShowForm/create_medicine_name/main endpoint to administrator-role accounts only, removing low-privileged users' ability to submit medicine name values and collapsing the PR:L attack surface; this may affect workflow if clerks routinely create medicine entries. Additionally, deploying a Content Security Policy (CSP) response header that disallows inline scripts (script-src 'self') limits the blast radius of any successful XSS injection by blocking unauthorized script execution in the browser, though this requires testing for compatibility with the application's own inline JavaScript. The public proof-of-concept is documented at https://github.com/timeflies123/cve/issues/2 and the VulDB entry at https://vuldb.com/vuln/367522 for further technical detail.
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) identifies the root cause as missing or inadequate output encoding of user-supplied input before it is rendered into HTML. The vulnerable component is the create_medicine_name PHP function exposed at the HTTP endpoint /ShowForm/create_medicine_name/main, where the medicine_name argument is processed and reflected or stored without sanitization. SourceCodester distributes open-source PHP-based web applications intended as learning templates, commonly deployed in shared LAMP-stack environments with minimal hardening. The CPE string cpe:2.3:a:sourcecodester:pharmacy_sales_and_inventory_system:*:*:*:*:*:*:*:* uses a wildcard version field, indicating NVD has not narrowed the affected version range beyond the 1.0 explicitly cited in the description. The CVSS 4.0 vector confirms network reachability (AV:N) with no prerequisite vulnerability chaining (AT:N), consistent with a directly exploitable web input field.
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 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.
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-33616
GHSA-m84h-9wm2-4ch9
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB