Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
2.1
CVE-2026-140261: SourceCodester Drug Recommendation System allows malicious code via patient registration
CVE-2026-140261 · published 2 days ago
Summary
The patient registration page (patient.php) in the SourceCodester Drug Recommendation System can let an attacker place script code into the txtname field. When a user views the affected page, the injected script runs in their browser, which could expose personal information or alter what they see. Apply the vendor's update that cleans input, or add input validation and output encoding to block scripts, and review any existing logs for suspicious activity.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| sourcecodester | drug recommendation system | 1.0 |
Original advisory text
SourceCodester Drug Recommendation System Patient Registration patient.php cross site scripting
A security flaw has been discovered in SourceCodester Drug Recommendation System 1.0. Affected by this vulnerability is an unknown functionality of the file patient.php of the component Patient Registration. Performing a manipulation of the argument txtname results in cross site scripting. The attack may be initiated remotely. The exploit has been released to the public and may be used for attacks.
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker partial control (estimated)
Severity
2.1
Low
Type
CWE-79Cross-site Scripting (XSS)
CWE-94Code Injection
Timeline
Published1 Dec 2026
Updated3 Dec 2026
First seen1 Dec 2026
Track software like this
Free during beta