Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged OpenEMR user
-
DeliveryUpload crafted CCDA/CCD XML with on* handlers
-
ExploitClinician opens inline document preview
-
ExecutionHover/click/focus triggers denylist-evading handler
-
PersistScript executes in clinician session
-
ImpactCredentialed same-origin fetch exfiltrates data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated OpenEMR account with the ability to introduce/upload a CCDA or CCD clinical document (PR:L), plus a victim clinician who opens that document using the inline 'View' preview (not raw Download) and interacts with the malicious element by hovering, clicking, or focusing it (UI:P). The payload attribute VALUES must avoid the cda.xsl denylist characters (" ' : ; ? ` { }) and the substring 'javascript', so the attacker uses quote-free, semicolon-free JavaScript (e.g. comma operator, String.fromCharCode) on on* handlers; ccd.xsl table-cell attributes (e.g. onfocus on <td>) are copied with no sanitization at all. If OpenEMR secure upload is enabled, text/xml and/or application/xml must be present in the Admin 'files_white_list'. Limiting factors that reduce real-world risk: valid authentication is needed, the victim must both preview and interact with the content, and only the inline preview sink (XSLTProcessor output as text/html) is affected - raw download does not trigger it. |
| Impact | This is a stored cross-site scripting flaw (CWE-79) in OpenEMR's CCDA/CCD preview XSLT (cda.xsl and ccd.xsl) with a vendor-assigned CVSS 4.0 score of 8.6 (AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L). The signals are moderately but not maximally urgent: the attack is network-reachable with low complexity, but it is NOT unauthenticated - PR:L means an attacker needs a valid low-privileged OpenEMR account to upload the malicious document, and UI:P/Passive means a clinician must actually open and interact with (hover/click/focus) the preview for the script to fire. The vuln.today decision label is 'this_week', consistent with a serious issue that is not an emergency. There is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active or widespread exploitation; absence of these signals is not proof of safety but does argue against mass automated attack. A detailed public PoC reference with a working-looking payload exists in the GHSA advisory, but the input does not flag it as confirmed weaponized exploit code. Net: a genuine, confirmed, patched priority for any internet-exposed OpenEMR instance - especially given the healthcare context and session-theft impact - but its exploitation is gated by authentication and victim interaction rather than being a drive-by remote takeover, so it ranks below a PR:N/UI:N critical. Note the high VC:H/VI:H rating reflects clinician-session compromise; whether integrity impact is truly High depends on what actions the hijacked clinician session can perform. |
| Exploit ScenarioDerived | A low-privileged but authenticated OpenEMR user uploads a crafted CCDA/CCD XML document into a patient's Documents whose elements carry onmouseover, onclick, or onfocus handlers with denylist-evading (quote-free) values. When a clinician later opens that document with the inline preview and hovers, clicks, or focuses the payload element, attacker JavaScript runs in the clinician's authenticated session - for example issuing a same-origin credentialed fetch that exfiltrates data or acts as the clinician. A public PoC reference with a full payload exists in the GHSA advisory; it is not verified in the input as confirmed working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
Stored cross-site scripting in OpenEMR's CCDA/CCD clinical document preview allows an authenticated user who can introduce a crafted CCDA/CCD XML document to run script in a clinician's browser session when that document is opened with the inline 'View' preview. The flaw is an incomplete fix following CVE-2026-33932 (GHSA-g77x-9p3x-2j8f): cda.xsl still copies attacker-controlled event-handler attributes (onmouseover, onclick, onfocus) when their values avoid a small character denylist, and ccd.xsl copies table-cell attributes into preview HTML with no sanitization at all. Exploitation requires a valid OpenEMR account able to upload the document plus a victim who previews it and hovers, clicks, or focuses the malicious element, so it is not unauthenticated, but a public PoC reference with full reproduction steps and a working payload is documented in the vendor advisory; it is not verified here as packaged working exploit code, and no CISA KEV entry exists for this CVE.
RemediationAI
Vendor-released patch: upgrade to OpenEMR 8.3.0, which contains the fix for the incomplete-hardening issue tracked as GHSA-rghp-vwvf-c2r9; the vendor advisory and VulnCheck advisory (https://github.com/openemr/openemr/security/advisories/GHSA-rghp-vwvf-c2r9) list the corrected release. Because the vendor rates this as a this-week priority and a public PoC reference with reproduction steps is published, schedule the upgrade promptly if you cannot apply it immediately. Compensating controls until 8.3.0 is deployed: if secure upload is enabled, remove text/xml and application/xml from the Admin 'files_white_list' so crafted CCDA XML cannot be introduced, accepting that legitimate XML document uploads will also be blocked; restrict who may upload documents in the CCD and CCDA categories to trusted staff, since a valid authenticated account is a prerequisite; and avoid or disable the inline 'View' preview for CCD/CCD-A documents, forcing raw Download instead, with the trade-off that clinicians lose in-application document rendering. The advisory additionally proposes developer-side hardening - per-element attribute allowlisting that never copies on*, style, srcdoc or formaction, running HTMLPurifier over the XSLT-produced HTML before output, applying the same policy to ccd.xsl and qrda.xsl, and adding a Content-Security-Policy on preview responses as defense in depth.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenEMR renders HL7 v3 Clinical Document Architecture (CDA/CCD) XML into HTML for in-application preview using PHP's XSLTProcessor with two stylesheets shipped under interface/modules/zend_modules/public/xsl/: cda.xsl and ccd.xsl, with output served as text/html by the EncountermanagerController::previewDocumentAction and DocumentsController preview sinks. The root cause is CWE-79 stemming from XSLT templates that copy source XML attributes wholesale rather than allowlisting them: cda.xsl's 'output-attrs' template rejects attribute values containing the substring 'javascript' or characters from a small denylist (quotes, colon, semicolon, question mark, backtick, braces, ellipsis) and then performs <xsl:copy-of select="."/>, which leaves attribute names unchecked so on* handlers survive whenever their values are quote-free and semicolon-free (comma operators and String.fromCharCode are enough to build payloads). ccd.xsl's table templates use a bare <xsl:copy-of select="@*"/> with no checks at all, so handlers such as onfocus on a <td> pass through untouched. Because the injected HTML is produced inside the clinician's authenticated session, same-origin fetch() calls carry session cookies by default, letting the script read and act on authenticated application state. This is a distinct root cause from the earlier linkHtml 'javascript:' URL hardening; the vendor's recommended fix is per-element attribute allowlisting (never copy on*, style, srcdoc, formaction), HTMLPurifier-style sanitization of the XSLT output before echo, aligning ccd.xsl and qrda.xsl to the same policy, and adding CSP on preview responses.
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Authenticated uploader (PR:L) and required clinician preview interaction (UI:R); script runs in the victim's session across a trust boundary (S:C) yielding session/data compromise.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.3.0 contains a stored cross-site scripting vulnerability in the CCDA/CCD preview stylesheets, where cda.xsl copies event-handler attributes whose values evade a character denylist and ccd.xsl copies table-cell attributes unsanitized into preview HTML. Authenticated users can upload a crafted CCDA/CCD document with onmouseover, onclick, or onfocus handlers to execute script in a clinician's session when previewed.
Technical POC Analysis
CWE-79 (improper neutralization of input during web page generation), specifically stored XSS introduced by XSLT that copies attacker-controlled attributes verbatim into preview HTML.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenEMR's clinical document preview contains a stored cross-site scripting flaw that lets authenticated users inject malicious scripts into CCDA/CCD files, potentially compromising clinician sessions when viewed. This could lead to unauthorized actions, data exposure, or further network compromise within healthcare environments, affecting patient safety and regulatory compliance.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-119552
GHSA-rwwf-mjrp-f4xx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB