CVE-2026-126451: OpenEMR before 8.5.0 Stored XSS via Document Template Rendering

Published Nov 13, 2026
·
Updated

OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows portal patients to run JavaScript in staff sessions by injecting javascript: URLs into document templatedata. Attackers can submit an encounterForm value rendered unsanitized into an iframe src by DocumentTemplateRender, letting the script read PHI and CSRF tokens and call staff or admin endpoints.

Affected Software

1 affected component
OpenEMR OpenEMR<8.5.0

Event History

Nov 13, 2026
CVE Published
via MITRE·09:35 AM
Data Sourced
via MITRE·09:35 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A portal patient who can submit an encounterForm value can inject a javascript: URL into document template_data. Exploitation requires a staff member to render the affected document template in their session.

2

What can the injected script access or do in a staff session?

The script can read protected health information and CSRF tokens available to the staff user. It can also make requests to staff or administrator endpoints with that user's session.

3

Are administrators the only users at risk?

No. The issue affects staff sessions that render the malicious template; administrator endpoints may also be reachable if the victim session has the required privileges.

4

Which versions are affected?

OpenEMR versions before 8.5.0 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203