Skip to main content

OpenEMR CVE-2026-126474

| EUVDEUVD-2026-124950 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-5gj2-qhxg-rvq8
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain same-origin posting access
  2. Delivery
    Embed crafted acl/index link in message
  3. Exploit
    Victim opens link, module_id reflected unencoded
  4. Execution
    Inline script executes, reads document.cookie
  5. Impact
    Hijack 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenEMR 0 <8.5.0

Affected Packages

euvd openemr fix: 8.5.0

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
widely-used open-source EHR, but healthcare-sector-specific deployment footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy