CVE-2026-140261 — SourceCodester Drug Recommendation System
One of 2 SourceCodester Drug Recommendation System vulnerabilities published together by NVD: our article covers all of them.
PHPWebVulnerabilitiesSummary
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.
Severity breakdown
Low · 2.1
An attacker without an account can exploit this over the network if a user views or visits something.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- low on integrity, none on confidentiality and availability
- Impact on other systems
- none
- Exploit maturity
- a proof-of-concept exploit is public
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| SourceCodester Drug Recommendation System | 1.0 | — |
References by type
Other references
Affected
- SourceCodester Drug Recommendation System
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140261?
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. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-140261?
CVE-2026-140261 has a CVSS 4.0 base score of 2.1 (low), from the CNA (vuldb.com). An attacker without an account can exploit this over the network if a user views or visits something.
Is CVE-2026-140261 being exploited?
Not as far as is known: CVE-2026-140261 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-140261?
SourceCodester Drug Recommendation System 1.0.
How do I fix CVE-2026-140261?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.