Cross-site scripting in OpenEMR - #VU127317
Published: April 23, 2026
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.