Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privileged account
-
DeliverySubmit XSS payload via medicine_presentation field
-
ExploitPayload rendered in application page
-
ExecutionVictim user loads affected record
-
PersistMalicious script executes in victim browser
-
ImpactSession token or credentials exfiltrated
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 | Exploitation requires the attacker to hold at least a low-privileged authenticated account on the Pharmacy Sales and Inventory System (PR:L per CVSS vector) - unauthenticated access to the vulnerable form is not sufficient. Additionally, a separate victim user must load or interact with the page containing the injected payload (UI:R), meaning the attacker cannot directly trigger execution against a target without a social engineering or persistent injection component. The vulnerability is specific to the |
| Impact | The CVSS base score of 3.5 (Low) accurately reflects constrained real-world impact: the attack vector is network-accessible (AV:N) with low complexity (AC:L), but requires low-level authentication (PR:L) and victim user interaction (UI:R), substantially reducing opportunistic exploitation potential. Scope is unchanged (S:U), confidentiality impact is none (C:N), and integrity impact is low (I:L) - consistent with a non-persistent or limited-reach XSS. The temporal modifier E:P confirms publicly available proof-of-concept code, elevating urgency slightly above a purely theoretical finding. No EPSS score was provided in the input data, so exploitation probability cannot be quantified from that signal. KEV status is absent, meaning CISA has not confirmed active exploitation campaigns. The combination of a low CVSS, no KEV, and SourceCodester's profile as a demo/educational codebase strongly suggests this is a low-priority finding in enterprise contexts but a meaningful risk for any production deployment of this specific application. RC:R (Reasonable confidence) in the CVSS temporal vector indicates the vulnerability details are not yet fully corroborated by the vendor. |
| Exploit ScenarioDerived | An authenticated low-privileged user - such as a pharmacy clerk with a standard account - submits a crafted medicine presentation entry containing an injected JavaScript payload (e.g., |
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 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.
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.
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
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.
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 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.
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-33620
GHSA-cvf2-cgfw-jqr4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB