Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess add_drug.php form
-
DeliveryInject crafted XSS payload
-
ExploitPayload stored/reflected without encoding
-
ExecutionVictim loads affected page
-
ImpactScript executes in victim browser
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 targets the drug-add function exposed via Admin/add_drug.php in SourceCodester Drug Recommendation System 1.0, where user-supplied input is rendered without output encoding, enabling reflected and/or stored cross-site scripting. Limiting factors: (1) user interaction is required (UI:P) - a victim must view the page hosting the injected payload; (2) the vulnerable endpoint resides under the Admin/ directory, which in typical SourceCodester deployments sits behind an administrator login, so access to that form - or luring an authenticated admin to a crafted request - is likely a prerequisite despite the input vector's PR:N claim; (3) impact is confined to the browser context (no server-side confidentiality or availability impact). |
| Impact | This is a low-to-moderate priority issue despite public exploit availability. The CVSS 4.0 base score is 5.3 (Medium), reflecting limited impact: only integrity is affected at Low (VI:L) with no confidentiality (VC:N) or availability (VA:N) impact and no subsequent-system (scope) impact, consistent with a typical XSS payload executing in a victim's browser context. The signals are mixed: public exploit code exists (confirmed via VulDB/GitHub) and the CVSS marks exploitation as Proof-of-Concept (E:P), but there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of widespread or automated exploitation - exploitation is opportunistic at most. A key conflict must be flagged: the input CVSS vector lists PR:N (no privileges required), yet the vulnerable file is Admin/add_drug.php, strongly implying the affected form sits behind an administrative panel; if authentication is required, real-world exploitability is materially lower than the PR:N vector suggests - verify the authentication requirement against the vendor/PoC. UI:P (passive user interaction) further limits exploitation, as a victim must be induced to view the injected content. Overall this reads as a high-CVSS-relative-to-real-risk issue for a niche product rather than a fleet-wide emergency. |
| Exploit ScenarioDerived | An attacker submits a crafted payload through the add_drug.php form in the admin area; the application stores or reflects the input without proper output encoding (CWE-79), so when an administrator or user later views that content, attacker-controlled JavaScript executes in their browser. A public proof-of-concept documenting both reflected and stored XSS variants is available on GitHub, lowering the barrier to attack. Exploitation requires a victim to load the affected page (UI:P), and likely requires access to the admin add-drug function. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Cross-site scripting (XSS) in SourceCodester Drug Recommendation System 1.0 allows remote attackers to inject malicious scripts via the Admin/add_drug.php endpoint, which execute in an authenticated administrator's browser when the drug data is rendered. The attack requires user interaction and typically administrator-level access to the vulnerable form, and while publicly available exploit code exists, the overall risk is assessed as low-to-moderate due to these prerequisites and the limited browser-context impact.
RemediationAI
No vendor-released patch has been identified at the time of analysis. The primary recommendation is to apply input validation and output encoding on all user-supplied data in Admin/add_drug.php, ideally using a well-maintained PHP framework's escaping functions (e.g., htmlspecialchars with ENT_QUOTES). As a compensating control, restrict access to the Admin/ directory using IP allowlisting or additional authentication layers, though this may impede legitimate administrative access. Deploy a Web Application Firewall (WAF) with rules to block XSS patterns; however, WAFs can sometimes be bypassed and may generate false positives. Consider implementing a Content Security Policy (CSP) header to mitigate script execution, but this requires careful configuration to avoid breaking legitimate site functionality. Monitor the VulDB advisory (https://vuldb.com/vuln/413698) for any vendor patch updates. Given the public exploit, prioritize remediation for internet-exposed instances.
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 a classic CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in the PHP-based SourceCodester Drug Recommendation System. The Admin/add_drug.php script fails to properly sanitize or encode user-supplied input before reflecting it back to the user or storing it in a database for later display, enabling both reflected and stored XSS. The affected product is identified by CPE cpe:2.3:a:sourcecodester:drug_recommendation_system:*:*:*:*:*:*:*:* (version 1.0). Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim's browser session, potentially leading to session hijacking, defacement, or phishing, though the independent assessment notes that confidentiality and availability impacts are limited (C:L/I:L/A:N) and the attack requires user interaction (UI:R) and privileges (PR:L) to reach the vulnerable admin interface.
Know when Drug Recommendation 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:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Admin-area form implies at least low privileges (PR:L); XSS needs victim interaction (UI:R) and crosses into the victim's browser context (S:C) with limited C/I impact and no availability effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security flaw has been discovered in SourceCodester Drug Recommendation System 1.0. This impacts an unknown function of the file Admin/add_drug.php. Performing a manipulation results in cross site scripting. The attack is possible to be carried out remotely. The exploit has been released to the public and may be used for attacks.
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.
More in Drug Recommendation System
View allAuthentication bypass in SourceCodester Drug Recommendation System 1.0 lets remote, unauthenticated attackers impersonat
SQL injection in SourceCodester Drug Recommendation System 1.0 lets a remote attacker manipulate the SQL query behind /d
SQL injection in SourceCodester Drug Recommendation System 1.0 allows remote attackers to manipulate the ID parameter in
Cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows unauthenticated remote attackers to inject
Cross-site request forgery in SourceCodester Drug Recommendation System 1.0 allows a remote attacker to make an authenti
Stored cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows an authenticated user with access to
Stored cross-site scripting in the admin symptom-management form (drug_recommender/Admin/add_symptom) of SourceCodester
SQL injection in SourceCodester Drug Recommendation System 1.0 allows unauthenticated remote attackers to execute arbitr
Cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows remote, unauthenticated attackers to inject
Stored cross-site scripting in SourceCodester Drug Recommendation System 1.0 lets unauthenticated remote attackers injec
SQL injection in SourceCodester Drug Recommendation System 1.0 allows an authenticated administrator to inject arbitrary
SQL injection in the admin Drug Creation routine of SourceCodester Drug Recommendation System 1.0 lets an attacker with
EUVD-2026-92948
GHSA-mc48-grxp-q6cg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB