HackerFeeds
All CVEs

CVE-2026-140261: SourceCodester Drug Recommendation System Cross-site Scripting

MEDIUM4.3

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

  1. Check the references below for the vendor's patched release of SourceCodester Drug Recommendation System and apply it.
  2. 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.
  3. Apply a restrictive Content-Security-Policy and mark session cookies HttpOnly to limit what an injected script can do.
  4. 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.

CVSS 3.1 metrics for CVE-2026-140261
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionRequiredA victim has to take an action, such as opening a link or file.
ConfidentialityNoneNo effect on confidentiality.
IntegrityLowPartial loss of integrity.
AvailabilityNoneNo 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

An attacker can make script run in another user's browser in the context of the affected site, allowing session theft or actions taken as that user.

Classified as CWE-79, CWE-94 (Code Injection).

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.

View on NVD