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.
Metrics
CVSS 3.1 5.4/10
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| openemr | openemr | < 8.5.0 |
References
- https://github.com/openemr/openemr/security/advisories/GHSA-hfpq-j3fj-cpmvExploit, Vendor Advisory
- https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-document-template-renderingThird Party Advisory
Timeline
- Published
- Nov 13, 2026
- Last modified
- Nov 16, 2026
- NVD status
- Analyzed