CVE-2026-126451 OpenEMR before 8.5.0 Stored XSS via Document Template Rendering
HighCVSS 8.5
EPSS 0.78%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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 template_data. 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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| open-emr openemr | < 8.5.0 | 8.5.0 | Fixed |
| openemr | < 8.5.0 | 8.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | < 8.5.0 | 8.5.0 |
| open-emr openemr | < 8.5.0 | 8.5.0 |
References
- GitHub Security Advisory (GHSA-hfpq-j3fj-cpmv) exploit vendor-advisory
- VulnCheck Advisory: OpenEMR before 8.5.0 Stored XSS via Document Template Rendering third-party-advisory
- ENISA EUVD EUVD-2026-124977 third-party-advisory