Cross-site scripting in OpenEMR - CVE-2026-46518

 

Cross-site scripting in OpenEMR - CVE-2026-46518

Published: April 23, 2026


Vulnerability identifier: #VU127317
CSH Severity: Low
CVSS v4: 2.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-46518
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary JavaScript in a clinician's browser session.

The vulnerability exists due to cross-site scripting in the prescription CSS/HTML multi-print feature when rendering patient demographic fields from patient records. A remote user can submit crafted HTML or script through the patient update API to execute arbitrary JavaScript in a clinician's browser session.

Exploitation requires the patient portal to be enabled, a direct call to the api/patient/:num endpoint to bypass the normal audit workflow, an existing prescription for the patient, and a clinician to use the CSS/HTML multi-print option.


Affected software

OpenEMR

How to mitigate CVE-2026-46518

Install security update from vendor's website.

OpenEMR - update to 8.0.0.1

External References

Related Security Bulletins