CVE-2026-140261: SourceCodester Drug Recommendation System Cross-site Scripting
Published 2026-12-01 · Updated 2026-12-03 · Source cna@vuldb.com
Not known to be exploited · medium severity — apply the vendor fix or mitigation on your normal schedule.
What to do
- Check the references below for the vendor's patched release of SourceCodester Drug Recommendation System and apply it.
- Until it is patched, do not leave SourceCodester Drug Recommendation System reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is low, so a working exploit is expected to be reliable. The impact is limited: integrity is rated low.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | None | No effect on availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Weakness: Cross-site Scripting
Description
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.
Advisory text as published in the NVD record.
References
- Advisoryhttps://vuldb.com/cve/CVE-2026-140261
- Advisoryhttps://vuldb.com/submit/1090131
- Advisoryhttps://vuldb.com/vuln/446854
- Advisoryhttps://vuldb.com/vuln/446854/cti
- Referencehttps://github.com/qwer1230011107/vuldb-reports/blob/main/drug-recommender/02-XSS.md
- Referencehttps://www.sourcecodester.com/