CVE-2026-3766

SourceCodester Web-based Pharmacy Product Management System edit-profile.php cross site scripting

Published Mar 8, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability lies in the edit‑profile.php file of the SourceCodester Web‑based Pharmacy Product Management System. An attacker can inject malicious scripts by manipulating the fullname argument, leading to client‑side code execution when the page is rendered. This flaw can be triggered remotely and has a publicly available exploit.

Affected Systems

The affected system is SourceCodester's Web‑based Pharmacy Product Management System, version 1.0. No other vendors or product versions are listed.

Risk and Exploitability

The CVSS base score is 5.1, indicating moderate severity, and the EPSS score is less than 1 %, suggesting a low probability of exploitation. The weakness is not listed in the CISA KEV catalog, but the public exploit available means that attackers could still target systems running the vulnerable version. The attack path requires a crafted request to edit‑profile.php with a malicious fullname value, which is then reflected in the browser without proper sanitization.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Validate and sanitize the fullname input on the server side, ensuring that only acceptable characters are stored and displayed. Prefer functions like filter_var with FILTER_SANITIZE_STRING or htmlspecialchars before rendering the value.
  • If a newer version of the SourceCodester system has been released, upgrade to that version to remove the vulnerability.
  • Implement a Content Security Policy header such as default-src 'self'; script-src 'self' to mitigate the impact of any remaining XSS payloads.

Generated by OpenCVE AI on April 16, 2026 at 04:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Senior-walter
Senior-walter web-based Pharmacy Product Management System
CPEs cpe:2.3:a:senior-walter:web-based_pharmacy_product_management_system:1.0:*:*:*:*:*:*:*
Vendors & Products Senior-walter
Senior-walter web-based Pharmacy Product Management System
Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester web-based Pharmacy Product Management System
Vendors & Products Sourcecodester
Sourcecodester web-based Pharmacy Product Management System
Type Values Removed Values Added
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.
Title SourceCodester Web-based Pharmacy Product Management System edit-profile.php cross site scripting
Weaknesses CWE-79
CWE-94
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 10, 2026, 8:41 PM
Reserved
Mar 7, 2026, 8:51 PM
Status
Analyzed
Published
Mar 8, 2026, 8:15 PM
Modified
Jun 17, 2026, 10:44 AM