Cross-site scripting in OpenEMR - #VU127317

 

Cross-site scripting in OpenEMR - #VU127317

Published: April 23, 2026


Vulnerability identifier: #VU127317
CSH Severity: Low
CVSS v4.0: 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/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: OpenEMR
Affected software:
OpenEMR

Detailed vulnerability description

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.


Remediation

Install security update from vendor's website.

Sources