Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-3766: Cross Site Scripting in SourceCodester Web-based Pharmacy Product Management System

0
Medium
VulnerabilityCVE-2026-3766cvecve-2026-3766
Published: Sun Mar 08 2026 (03/08/2026, 20:02:11 UTC)
Source: CVE Database V5
Vendor/Project: SourceCodester
Product: Web-based Pharmacy Product Management System

Description

A security flaw has been discovered in SourceCodester Web-based Pharmacy Product Management System 1.0. This impacts an unknown function of the file edit-profile.php. Performing a manipulation of the argument fullname 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/16/2026, 09:23:10 UTC

Technical Analysis

CVE-2026-3766 is a cross-site scripting vulnerability identified in version 1.0 of the SourceCodester Web-based Pharmacy Product Management System. The vulnerability resides in the edit-profile.php script, where the 'fullname' parameter is improperly sanitized, allowing an attacker to inject malicious JavaScript code. This flaw can be exploited remotely without requiring prior authentication, although user interaction is necessary to trigger the malicious payload. The vulnerability impacts the confidentiality and integrity of user sessions by enabling attackers to execute arbitrary scripts, potentially leading to session hijacking, credential theft, or unauthorized actions within the application. The CVSS 4.0 vector indicates low attack complexity and no privileges required, but user interaction is needed. No patches or official fixes have been published yet, and while no active exploitation has been observed, a public exploit is available, increasing the risk of opportunistic attacks. The vulnerability is particularly concerning for healthcare environments where the system manages sensitive pharmacy product data, potentially exposing patient or operational information. Mitigation currently relies on implementing strict input validation, output encoding, and possibly deploying web application firewalls to detect and block malicious payloads. Organizations should monitor for updates from the vendor and apply patches promptly once available.

Potential Impact

The impact of CVE-2026-3766 on organizations worldwide can be significant, especially in healthcare and pharmaceutical sectors that rely on the affected management system. Successful exploitation allows attackers to execute arbitrary scripts in the context of authenticated users, risking session hijacking, theft of sensitive information such as user credentials or patient data, and unauthorized actions within the application. This can lead to data breaches, loss of trust, regulatory penalties, and operational disruptions. Since the vulnerability requires user interaction, phishing or social engineering campaigns could be used to lure users into triggering the exploit. The exposure of sensitive healthcare data could have severe privacy implications and potentially impact patient safety. Additionally, attackers could use the vulnerability as a foothold for further network intrusion or lateral movement. The availability of a public exploit increases the likelihood of attacks, making timely mitigation critical. Organizations without adequate input validation or monitoring controls are particularly vulnerable.

Mitigation Recommendations

To mitigate CVE-2026-3766 effectively, organizations should implement the following specific measures: 1) Apply strict input validation on the 'fullname' parameter and any other user-supplied inputs, ensuring that special characters and script tags are properly sanitized or rejected. 2) Employ context-aware output encoding (e.g., HTML entity encoding) before rendering user inputs in the web interface to prevent script execution. 3) Deploy a Web Application Firewall (WAF) configured to detect and block common XSS attack patterns targeting the affected endpoint. 4) Educate users about the risks of clicking on suspicious links or interacting with untrusted content that could trigger XSS payloads. 5) Monitor application logs and network traffic for unusual activity indicative of exploitation attempts. 6) Engage with the vendor or community to obtain patches or updates as soon as they become available and prioritize their deployment. 7) Consider implementing Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts within the application context. 8) Conduct regular security assessments and code reviews focusing on input handling and output encoding practices. These targeted actions go beyond generic advice and address the specific attack vector and environment of the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-03-07T20:51:03.942Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69adda962904315ca3ea0ea7

Added to database: 3/8/2026, 8:22:46 PM

Last enriched: 3/16/2026, 9:23:10 AM

Last updated: 4/28/2026, 5:15:27 AM

Views: 86

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses