CVE-2026-126451
Awaiting Analysis Awaiting Analysis - Queue

Stored XSS in OpenEMR Patient Portal via Document Template

Vulnerability report for CVE-2026-126451, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-13

Last updated on: 2026-11-13

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-13
Last Modified
2026-11-13
Generated
2026-11-13
AI Q&A
2026-11-13
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
openemr openemr to 8.5.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stored cross-site scripting (XSS) vulnerability in OpenEMR versions before 8.5.0. Attackers can inject malicious javascript: URLs into document template_data, which are then rendered unsanitized into an iframe src by DocumentTemplateRender. This allows JavaScript to execute in staff sessions, potentially reading protected health information (PHI) and CSRF tokens.

Detection Guidance

Check OpenEMR versions before 8.5.0 for the vulnerability. Inspect document templates in the onsite_documents table for javascript: URLs in template_data fields. Monitor staff sessions for unexpected JavaScript execution when reviewing patient documents.

Impact Analysis

If you are a staff member using OpenEMR before 8.5.0, an attacker could steal your session data, including PHI and CSRF tokens. The attacker could then perform unauthorized actions on your behalf, such as accessing or modifying patient records, or escalating privileges if you are an administrator.

Compliance Impact

This vulnerability could lead to unauthorized access and exposure of protected health information (PHI), violating HIPAA requirements for safeguarding patient data. It may also result in non-compliance with GDPR if personal data of EU citizens is compromised, potentially leading to legal penalties and reputational damage.

Mitigation Strategies

Upgrade OpenEMR to version 8.5.0 or later immediately. Review and sanitize all template_data entries in the onsite_documents table. Implement input validation for encounterForm values to prevent javascript: URL injection.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-126451. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...