OpenEMR: Stored Cross-Site Scripting via Document Templates (CVE-2026-126451)
OpenEMR versions prior to 8.5.0 contain a stored cross-site scripting vulnerability allowing portal patients to execute arbitrary JavaScript in staff sessions via malicious encounterForm values.
CVE search metadata
CVE search record: CVE-2026-126451. Severity: high. CVSS: 7.3. KEV: no. Product: OpenEMR. Brief: OpenEMR: Stored Cross-Site Scripting via Document Templates (CVE-2026-126451). Brief link: https://feed.craftedsignal.io/briefs/2026-11-openemr-xss-cve-2026-126451/
Triage facts
Revision 1- Applicability
- OpenEMR
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 13, 12:29 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
OpenEMR versions prior to 8.5.0 contain a stored cross-site scripting (XSS) vulnerability. The flaw exists because the DocumentTemplateRender function renders unsanitized input from the encounterForm value into an iframe src attribute. An attacker with portal patient access can inject javascript: URLs into document template_data to achieve arbitrary JavaScript execution in the context of authenticated staff or administrative sessions.
Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the session of a staff member or administrator. This can result in the unauthorized exfiltration of protected health information (PHI), theft of CSRF tokens, and the ability to perform unauthorized actions against administrative endpoints.
Recommendation
Upgrade all OpenEMR installations to version 8.5.0 or later to remediate the vulnerability associated with CVE-2026-126451.
Immediate actions
Upgrade OpenEMR to version 8.5.0 or later.
Threat Hunt
Investigate web server logs for suspicious iframe source content or unusual javascript: URI parameters in document template requests.
Data: Web server access logs, Application audit logs
Mitigations
Upgrade OpenEMR to 8.5.0 or later
CVE-2026-126451