Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public registration page
-
DeliverySubmit form with crafted script in txtname/txtemail field
-
ExploitPayload stored/reflected by add_student.php
-
ExecutionVictim browser renders injected JavaScript
-
ImpactScript runs in victim session context
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 Student Registration feature exposed via Auth/add_student.php to be reachable, and an attacker supplies a script payload in the txtname, txtpassword, txtemail, txtphone, or txtprevious_school parameter. The key LIMITING factor is required user interaction (UI:P): the injected payload only executes when a victim - most plausibly an administrator or operator viewing submitted registration data - renders the tainted output in a browser; it does not fire against the attacker alone. No authentication is needed to inject (PR:N per the CVSS 4.0 vector). Impact is bounded to the victim's browser session within this specific application (SourceCodester Drug Recommendation System 1.0); there is no server-side code execution. |
| Impact | This is a low-to-moderate priority issue despite public exploit availability. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N) scores 5.3 (Medium): network-reachable and unauthenticated, but requiring victim interaction (UI:P) and yielding only low integrity impact with no confidentiality or availability impact per the supplied vector. CWE-79 (cross-site scripting) is consistent with the description. Exploitation status: publicly available exploit code exists (VulDB notes the exploit has been made public), but this is distinct from active exploitation - the CVE is NOT in CISA KEV and no EPSS score was provided in the input. SSVC/automatable signals are absent. The vector's SSVC-relevant exploitation sub-score E:P (Proof-of-Concept) corroborates POC rather than weaponized use. Net: a real but modest web-app flaw; the combination of a niche hobby/educational product, required user interaction, and absence of KEV/EPSS evidence points to opportunistic rather than widespread or targeted exploitation. Note a conflict worth flagging: the input vector sets VC:N (no confidentiality impact), yet real-world XSS commonly enables session/cookie theft - verify impact scope against the actual sink behavior. |
| Exploit ScenarioDerived | An unauthenticated attacker submits the student registration form at Auth/add_student.php with a malicious script payload in one of the fields (txtname, txtpassword, txtemail, txtphone, or txtprevious_school). When the stored/reflected value is later rendered in a browser (e.g., an administrator reviewing registrations), the injected JavaScript executes in that victim's session context. A public proof-of-concept exists, and the low attack complexity (AC:L) makes crafting the payload trivial, though execution depends on a victim viewing the tainted output (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Cross-site scripting in SourceCodester Drug Recommendation System 1.0 allows remote, unauthenticated attackers to inject script payloads into the Student Registration workflow at Auth/add_student.php via the txtname, txtpassword, txtemail, txtphone and txtprevious_school fields. Publicly available exploit code exists (CVSS 4.0 E:P, CVSS 3.1 base 5.3) and the injected script executes only when a victim - plausibly an administrator reviewing submitted registration records - renders the tainted output in a browser, so impact is bounded to that victim's browser session within the application. Exploitation is not confirmed actively exploited (not in CISA KEV), and no vendor-released patch was identified at time of analysis, making this a low-to-moderate priority issue despite the public exploit.
RemediationAI
No vendor-released patch was identified at time of analysis, so no fixed version number can be cited and defenders must rely on compensating controls. The most effective immediate step is to restrict reachability of Auth/add_student.php: place it behind authentication or IP allow-listing, or remove/disable the Student Registration feature if it is not operationally required - the trade-off is that legitimate self-registration by students or staff stops working, and any authenticated-only workaround still leaves stored payloads reachable by administrators who review submissions. If the form must stay public, add server-side validation on the five parameters (txtname, txtpassword, txtemail, txtphone, txtprevious_school) that rejects or strips HTML tag and event-handler content, and apply context-aware output encoding (for example PHP htmlspecialchars with ENT_QUOTES) wherever stored registration values are rendered back to administrators - encoding must be applied at the output sink, not only on input, otherwise double-encoding or bypasses via attribute contexts remain possible. Because the payload targets a privileged viewer, set session cookies with HttpOnly and SameSite attributes to blunt cookie theft from any successful injection, and consider a WAF rule blocking script/markup patterns in these POST fields as a stopgap, understanding that WAF bypasses are common and it is not a substitute for the code fix. Monitor the VulDB advisory pages (https://vuldb.com/vuln/416732 and https://vuldb.com/cve/CVE-2026-108919) for the eventual upstream fix, since the public exploit code noted in the advisory raises the likelihood of opportunistic scanning against exposed installations.
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) flaw in a PHP web application, SourceCodester Drug Recommendation System 1.0, built as a student/drug recommendation management sample project. The CPE record cpe:2.3:a:sourcecodester:drug_recommendation_system:*:*:*:*:*:*:*:* enumerates the product with an unbounded version wildcard, indicating no specific fixed build is distinguished. The affected element is the Student Registration handler Auth/add_student.php, where the parameters txtname, txtpassword, txtemail, txtphone and txtprevious_school are accepted from an HTTP request and subsequently embedded into HTML output without context-aware escaping, letting markup and script content survive into pages served to other users. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) confirms a network-reachable, low-complexity, unauthenticated injection path where the attacker does not need credentials, but the vulnerable code is not remotely exploitable for server-side code execution - there is no RCE component, and the security scope change with limited confidentiality and integrity impact (per our assessed CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) reflects attacker-controlled script running in a victim's browser context rather than compromise of the host.
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
Remotely injectable without auth (AV:N/PR:N); requires a victim to render output (UI:R); XSS crosses into the browser trust boundary (S:C) with low confidentiality and integrity impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Auth/add_student.php of the component Student Registration. This manipulation of the argument txtname/txtpassword/txtemail/txtphone/txtprevious_school causes cross site scripting. The attack can be initiated remotely. The exploit has been made available to the public and could 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 scripting (XSS) in SourceCodester Drug Recommendation System 1.0 allows remote attackers to inject malicious
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
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-97757
GHSA-q9qf-g4q2-2gv2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB