CVE-2026-94033
Received Received - Intake

Cross-Site Scripting in Drug Recommendation System 1.0

Vulnerability report for CVE-2026-94033, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-20

Last updated on: 2026-09-20

Assigner: VulDB

Description

A vulnerability has been found in SourceCodester Drug Recommendation System 1.0. This vulnerability affects unknown code of the file /drug_recommender/Admin/add_user of the component User Management. Such manipulation of the argument txtname/txtemail/txtpassword leads to cross site scripting. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-20
Last Modified
2026-09-20
Generated
2026-09-20
AI Q&A
2026-09-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
sourcecodester drug_recommendation_system 1.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a reflected Cross-Site Scripting (XSS) vulnerability in the Drug Recommendation System 1.0. It allows attackers to inject malicious JavaScript code via the txtname, txtemail, and txtpassword parameters in the /drug_recommender/Admin/add_user endpoint. The injected script executes in the administrator's browser, potentially leading to session hijacking and unauthorized actions.

Detection Guidance

To detect this XSS vulnerability, inspect the /drug_recommender/Admin/add_user endpoint for reflected user input in txtname, txtemail, and txtpassword parameters. Use browser developer tools to check if inputs are reflected without proper encoding. Test with payloads like '><script>alert(1)</script> to see if scripts execute.

Impact Analysis

An attacker could steal session cookies (like PHPSESSID) due to the lack of HttpOnly flag, allowing them to hijack admin sessions. This could lead to unauthorized access to sensitive data, manipulation of user records, or performing actions as an admin without permission.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, violating GDPR's data protection principles and HIPAA's security requirements. It may result in data breaches, unauthorized disclosures, and failure to maintain confidentiality and integrity of sensitive information.

Mitigation Strategies

Apply context-aware output encoding using functions like htmlspecialchars() in PHP for all user-supplied inputs. Implement strict server-side input validation to restrict inputs to expected characters per field. Ensure session cookies have the HttpOnly flag set to prevent theft. Add CSRF protection to prevent auto-submitted crafted requests.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-94033. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart