Home › Vulnerabilities › SourceCodester
SourceCodester Drug Recommendation System 1.0 Gets Two Public Flaws: SQL Injection and XSS
NVD published two vulnerabilities in SourceCodester Drug Recommendation System 1.0 on 2026-12-01: an SQL injection in the user management component rated MEDIUM (CVSS 5.5), and a cross-site scripting flaw in patient registration rated LOW (CVSS 2.1). Both are reported as remotely reachable with public exploits.
What to look into
- 2 vulnerabilities in SourceCodester Drug Recommendation System: 1 medium, 1 low (CVSS up to 5.5).
- None of them is known to be exploited yet.
- Start with CVE-2026-140587 (5.5 medium): A vulnerability was detected in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Admin/adduser.php of the component User Management. Performing a… An attacker without an account can exploit this over the network, without any user action.
- 2 of 2 can be attacked over the network without logging in, 1 of them without anyone clicking anything.
- Kinds of flaws: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'); Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'); Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'); Improper Control of Generation of Code ('Code Injection').
Key points
- Two flaws in SourceCodester Drug Recommendation System 1.0, published by NVD on 2026-12-01.
- CVE-2026-140587 (MEDIUM, CVSS 5.5): SQL injection via txtpassword in Admin/adduser.php.
- CVE-2026-140261 (LOW, CVSS 2.1): cross-site scripting via txtname in patient.php.
- Both are reported as remotely exploitable, with public exploits.
- The sources give no fixed version or workaround.
The batch contains two flaws in SourceCodester Drug Recommendation System 1.0, both published by NVD on 2026-12-01. They are different bug classes, but both sit in web forms that the records say can be reached remotely, and in both cases the sources state that the exploit has been made public.
The more severe issue
CVE-2026-140587 is the higher-rated of the two, at MEDIUM with a CVSS score of 5.5. The record places it in the User Management component, specifically in the file Admin/adduser.php. Manipulating the txtpassword argument is described as leading to SQL injection. In plain terms, input supplied through that field can alter the database queries the application runs. The record says the attack can be carried out remotely and that the exploit is now public and may be used.
The lower-rated issue
CVE-2026-140261 is rated LOW, with a CVSS score of 2.1. It affects patient.php in the Patient Registration component. According to the record, manipulating the txtname argument results in cross-site scripting, meaning script content can be injected into pages that other users view. Like the first flaw, the record says it can be initiated remotely and that an exploit has been released publicly.
Who is affected and what is not stated
Both records concern version 1.0 of the product, and that is the only version identified. The sources do not say whether later versions exist or are fixed, do not name a patch or workaround, and do not describe any detection method. They also do not state that either flaw has been observed being exploited in real attacks; they say only that public exploits exist or may be used.
Administrators running this application should treat both entries as open until the vendor or project publishes guidance. Because the SQL injection is the more serious of the two, it deserves attention first, particularly on any internet-facing installation.
What to do
- Identify any deployments running SourceCodester Drug Recommendation System 1.0.
- Prioritise CVE-2026-140587 given its SQL injection and public exploit.
- Restrict access to the admin user-management page and patient registration form until guidance is available.
- Watch for a vendor or project fix, as the records do not name one.
The 2 vulnerabilities
- CVE-2026-140587 5.5 A vulnerability was detected in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Admin/adduser.php of the component User Management. Performing a manipulation of the argument txtpasswor…
- CVE-2026-140261 2.1 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 th…
Frequently asked questions
How many SourceCodester Drug Recommendation System vulnerabilities were published on December 1, 2026?
2 vulnerabilities: 1 medium, 1 low, with CVSS scores up to 5.5.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-140587 (CVSS 5.5): A vulnerability was detected in SourceCodester Drug Recommendation System 1.0. The impacted element is an unknown function of the file Admin/adduser.php of the component User Management. Performing a…