Cross-site scripting in OpenEMR - #VU158841
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote privileged user to execute arbitrary JavaScript in a clinician's OpenEMR session, read same-origin patient information, and submit actions with the clinician's privileges.
The vulnerability exists due to improper neutralization of stored code descriptions in the Functional and Cognitive Status form and layout-based fee-sheet forms when rendering a code selected by a clinician. A remote privileged user can use admin/superbill write permission to store a SNOMED code description containing <img src=x onerror=alert(1)>, which is subsequently assigned to innerHTML, to execute JavaScript in the clinician's authenticated session.