CVE-2026-46518
JSON

7.7high

OpenEMR: Stored XSS in prescription CSS/HTML print view via patient demographics

Severity
7.7high CVSS:3.1 by GitHub_M
Exploit likelihood
0.21% (higher than 11% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0.1, a stored cross-site scripting vulnerability in the prescription CSS/HTML multi-print feature allows a patient portal user to execute arbitrary JavaScript in a clinician's browser session. Patient demographic fields (name, address) are rendered without output encoding in multiprintcss_header(), and portal patients can write attacker-controlled HTML directly into patient_data by calling the PUT api/patient/:num endpoint, which bypasses the intended audit review workflow. Because the XSS fires in the clinician's authenticated session on the main OpenEMR interface, the attacker can access CSRF tokens, session data, and perform actions as the clinician — crossing the patient-to-clinician trust boundary. This issue has been patched in version 8.0.0.1.

Affected

Product or packageVersionsReported by
openemr openemr< 8.0.0.1CVE List
open-emr openemrbefore 8.0.0.1NVD

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
NVD8.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Classification

CWE-79CWE-862

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0.1, a stored cross-site scripting vulnerability in the prescription CSS/HTML multi-print feature allows a patient portal user to execute arbitrary JavaScript in a clinician's browser session. Patient demographic fields (name, address) are rendered without output encoding in multiprintcss_header(), and portal patients can write attacker-controlled HTML directly into patient_data by calling the PUT api/patient/:num endpoint, which bypasses the intended audit review workflow. Because the XSS fires in the clinician's authenticated session on the main OpenEMR interface, the attacker can access CSRF tokens, session data, and perform actions as the clinician — crossing the patient-to-clinician trust boundary. This issue has been patched in version 8.0.0.1.

NVD (es)

OpenEMR es una aplicación de gestión de registros médicos electrónicos y práctica médica de código abierto y gratuita. Antes de la versión 8.0.0.1, una vulnerabilidad de cross-site scripting almacenado en la función de impresión múltiple CSS/HTML de prescripciones permite a un usuario del portal de pacientes ejecutar JavaScript arbitrario en la sesión del navegador de un médico. Los campos demográficos del paciente (nombre, dirección) se renderizan sin codificación de salida en multiprintcss_header(), y los pacientes del portal pueden escribir HTML controlado por el atacante directamente en patient_data llamando al endpoint PUT api/patient/:num, lo que omite el flujo de trabajo de revisión de auditoría previsto. Debido a que el XSS se activa en la sesión autenticada del médico en la interfaz principal de OpenEMR, el atacante puede acceder a tokens CSRF, datos de sesión y realizar acciones como el médico - cruzando el límite de confianza entre paciente y médico. Este problema ha sido parcheado en la versión 8.0.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-46518 changed 2026-06-10CVE Terms of Use
NVDCVE-2026-46518 changed 2026-07-23Public domain