Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain same-origin posting access
-
DeliveryEmbed crafted acl/index link in message
-
ExploitVictim opens link, module_id reflected unencoded
-
ExecutionInline script executes, reads document.cookie
-
ImpactHijack session, modify ACL and disclose patient 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 | Sink 1 (acl/index) requires only ANY authenticated OpenEMR session for the victim - there is no ACL gate on that action or view. Sink 2 (acl/acl) additionally requires the victim's account to hold admin/manage_modules rights (satisfied by the default Administrators group, not just the single admin login). The injected module_id payload must be valid in two JS positions for Sink 1 (hence the comma/|| form). Limiting factors that reduce real-world risk: the victim must already be authenticated and must click/open the crafted link (UI:A), no CSRF token is needed on either endpoint, and the default SameSite=Strict session cookie forces SAME-ORIGIN delivery - so the attacker typically needs write access to a user-visible field within the same instance (message, patient note) rather than a plain external phishing link. Impact is amplified by the session cookie lacking the HttpOnly flag (SessionConfigurationBuilder.php cookieHttpOnly:false), making the token directly readable via document.cookie. |
| Impact | This is a moderate-severity, authenticated reflected XSS (CWE-79) scored CVSS 4.0 5.1. The input vector (AV:N/AC:L/AT:N/PR:N/UI:A, impacts limited to SC:L/SI:L) reflects a browser-context compromise rather than direct server impact, which is consistent with the reflected-XSS mechanism. The key tension is PR:N versus the description's 'authenticated sessions': PR:N is correct for the ATTACKER (no account needed to craft the payload), but successful exploitation requires an authenticated VICTIM and, under the default SameSite=Strict cookie, same-origin delivery - so in practice the attacker usually needs write access to a user-visible field (message, patient note) on the same instance, materially raising real-world attack complexity beyond the AT:N in the input. No EPSS score and no KEV listing are present in the provided data, and there is no indication of active exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency). A detailed public PoC with working request/response pairs is published in the GitHub Security Advisory. Net: a genuine but not emergency priority - patch within the maintenance window. The non-HttpOnly session cookie elevates impact from nuisance XSS to direct session-token theft, which is the main reason to prioritize it above a typical 5.1. |
| Exploit ScenarioDerived | An attacker with the ability to post content into a same-origin, user-visible field (an OpenEMR internal message or patient note) embeds a crafted acl/index link containing a module_id payload; when an authenticated user opens it, the unencoded value executes inside an inline <script> block. Because the OpenEMR session cookie lacks HttpOnly, the injected JavaScript reads document.cookie and exfiltrates the session token, enabling account takeover and ACL/user/group modification. A full public PoC with the exact payloads and rendered output is published in the GHSA advisory, though it is not packaged as a weaponized tool. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Reflected cross-site scripting in the OpenEMR ACL module (all releases before 8.5.0) lets remote attackers run arbitrary JavaScript in an authenticated user's session by supplying an unvalidated module_id query parameter to acl/index or acl/acl, which is echoed raw into inline <script> blocks. Sink 1 (acl/index) is reachable by any authenticated user with no access-control gate; Sink 2 (acl/acl) requires the victim's group to hold admin/manage_modules, satisfied by the default Administrators group and not just the single admin login. The OpenEMR session cookie is configured without HttpOnly, so stolen tokens are directly readable via document.cookie, enabling session hijacking plus ACL/user/group manipulation and patient-data disclosure. Scored CVSS 4.0 5.1 and not listed in CISA KEV; the upstream GHSA advisory publishes working request payloads and rendered output, so a public proof-of-concept is documented, though no in-the-wild exploitation has been reported.
RemediationAI
Upgrade to OpenEMR 8.5.0, which contains the vendor fix; the package data records the vulnerable range as < 8.5.0 and the fixed version as 8.5.0, and the patch is available from the vendor per the GHSA advisory (https://github.com/openemr/openemr/security/advisories/GHSA-mccm-83g2-7v57). For deployments that cannot upgrade immediately, the advisory's code-level remedy can be applied as a hotfix: constrain module_id to digits in both indexAction() and aclAction() (e.g. preg_match('/^[0-9]+$/', $module_id), consistent with the existing [0-9]+ route constraint) and replace the raw echoes in index.phtml and acl.phtml with Laminas escapeJs() or a flagged json_encode(), removing the surrounding manual double quotes so the encoder's quoting applies; escapeHtml() is not a valid substitute inside <script> blocks. The aclCheckCore('admin','manage_modules') gate on acl/acl only narrows the victim pool and is explicitly not a security boundary for this issue, and the acl/index sink has no gate at all, so upgrading is the only complete fix. As a strictly partial control against token theft, flipping cookieHttpOnly to true in SessionConfigurationBuilder.php blocks document.cookie reads of the session token but does not remove the XSS or the ACL, user, group and patient-data actions available to injected script, and the SameSite=Strict cookie setting limits but does not eliminate same-origin delivery of crafted links.
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's ACL module is built on the Laminas (Zend) MVC stack under interface/modules/zend_modules/module/Acl. AclController::indexAction() (line 38) and AclController::aclAction() (line 86) read module_id via fromQuery() with no integer validation, then pass it to the views: index.phtml (lines 19-20) echoes component_id into a selectThis(...) call and an assignment inside one inline <script> block, and acl.phtml (line 22) echoes module_id into a JavaScript variable assignment. Neither sink applies JavaScript-context output encoding (escapeJs() or json_encode()); escapeHtml() would not help because browsers do not decode HTML entities inside <script>. The [0-9]+ route constraint on the 'id' segment is bypassed entirely because module_id arrives as a query parameter. The flaw is CWE-79 (improper neutralization of input during web page generation), and because index.phtml renders the value in two JS syntactic positions, a valid payload must parse in both (the comma/|| form given in the advisory). Impact is amplified by SessionConfigurationBuilder.php line 20 setting cookieHttpOnly: false, leaving the session token readable by injected JavaScript; the default SameSite=Strict cookie means the crafted link must be delivered same-origin (for example through an OpenEMR message or patient note the attacker can write to) rather than as an ordinary external phishing link.
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:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
SameSite=Strict same-origin delivery plus dual-position JS payload drive AC:H; PR:N as the attacker needs no account, but an authenticated victim must interact (UI:R); XSS crosses into browser context (S:C) yielding C:L/I:L.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability in the ACL module that allows attackers to execute JavaScript in authenticated sessions via the module_id parameter. Attackers can deliver crafted acl/index or acl/acl links that inject unencoded input into inline script blocks, stealing non-HttpOnly session cookies and modifying ACL configuration.
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-124950
GHSA-5gj2-qhxg-rvq8
NVD
CVE.org
EPSS
Exploit-DB