Skip to main content

OpenEMR EUVDEUVD-2026-124949

| CVE-2026-126475 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-jcgx-x7gm-gxj2
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to OpenEMR (any role)
  2. Delivery
    Submit crafted searchEleNo POST to application/index/search
  3. Exploit
    Break out of unencoded HTML attribute in auto-suggest.phtml
  4. Execution
    jQuery .html() inserts live DOM node
  5. Persist
    onerror handler executes JavaScript
  6. Impact
    Steal non-HttpOnly session cookie and 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

Requires an authenticated OpenEMR session of any role/group (the autoSuggestAction controller and view perform no ACL check and no CSRF token is required), so this is NOT an unauthenticated remote flaw despite the supplied PR:N. The injected searchEleNo must be echoed through the auto-suggest row loop, which requires that at least one patient record exists whose name matches the queryString value (the advisory uses a patient named 'XSS Test'). Delivery must originate from the OpenEMR origin because the session cookie is SameSite=Strict, so the payload must be issued from an OpenEMR-origin context (the standard patient-search box flow already satisfies this); this same-origin constraint, plus the authentication requirement, are the main limiting factors that reduce realistic risk below a raw network-exploitable XSS. The decisive aggravator is that the OpenEMR session cookie is set with cookieHttpOnly: false (SessionConfigurationBuilder.php:20), so successful script execution yields direct cookie theft.

Impact

This is a moderate-severity, authenticated reflected XSS (CVSS 4.0 base 5.1) in OpenEMR's auto-suggest endpoint, and the real-world signals point to a solid-but-not-urgent priority rather than a top-of-queue emergency. KEV status is not indicated (no CISA KEV listing), so there is no confirmed active exploitation, and no EPSS probability was supplied, so widespread automated exploitation cannot be quantified from the input. The vuln.today decision label is 'this_month', consistent with a patchable, authentication-gated flaw rather than an act_now/emergency item. A detailed, confirmed-live proof of concept is published in the GHSA advisory (full HTTP request and working payload), which lowers the barrier to exploitation even though it is not catalogued as standalone weaponized exploit code. The most important signal conflict: the supplied CVSS 4.0 vector carries PR:N (no privileges required), but both the NVD-style description and the vendor GHSA advisory state exploitation requires an authenticated OpenEMR session and that the endpoint has no ACL check reachable only after login - PR:N appears incorrect and should be read as PR:L; verify with the vendor/VulnCheck. Impact is also bounded: the CVSS vector sets VC/VI/VA to N and reflects impact only in SC:L/SI:L (subsequent-system/browser), so the raw-server confidentiality/integrity impact is scored as none even though the advisory describes session-cookie theft and patient-data disclosure via the browser context. Net: a legitimate issue to patch on a normal monthly cycle, elevated somewhat by the non-HttpOnly session cookie that turns XSS into direct session hijack, but gated by authentication and same-origin delivery.

Exploit ScenarioDerived

An attacker with any authenticated OpenEMR account (or who induces a logged-in user's browser to issue the request from the OpenEMR origin) submits a crafted POST to application/index/search with a searchEleNo value that breaks out of the unencoded HTML attributes in auto-suggest.phtml, e.g. x"><img src=x onerror=alert(document.cookie)>. Because autosuggest.js inserts the returned fragment via jQuery .html(), the injected onerror handler executes immediately on DOM insertion with no click or keypress, and since the session cookie lacks HttpOnly, the attacker reads it via document.cookie for outright session hijack plus patient-data access. A confirmed, working PoC with the exact request and payload is published in the GHSA advisory.

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

Moderate-severity authenticated reflected cross-site scripting in OpenEMR's auto-suggest endpoint (application/index/search) lets an attacker who can drive an authenticated OpenEMR session from the OpenEMR origin execute JavaScript in that session by injecting into the searchEleNo POST parameter; because the session cookie is set without HttpOnly, document.cookie exposes the session token. The GitHub advisory includes a public proof-of-concept request that was reported as confirmed against a test instance, but no CISA KEV listing or evidence of active exploitation is provided, and the vuln.today priority is this_month. Affected versions are OpenEMR before 8.5.0; the vendor-released fix is 8.5.0.

RemediationAI

Vendor-released patch: upgrade to OpenEMR 8.5.0 or later, the fixed version listed in the advisory. The vendor advisory is https://github.com/openemr/openemr/security/advisories/GHSA-pv5m-vjm7-x355; no configuration-only workaround is described. If upgrading cannot be done immediately, the advisory's code-level mitigations are to constrain searchEleNo to digits in IndexController::autoSuggestAction() and reject non-numeric input, and to emit searchEleNo through escapeHtml() in HTML attribute contexts and js_escape()/escapeJs() in JavaScript string contents in auto-suggest.phtml; these changes affect the auto-suggest rendering path and require regression testing. The advisory notes no ACL check on the endpoint, so role-based restriction is not available without code changes.

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

The flaw is CWE-79 in OpenEMR's Zend 'Application' module. IndexController::autoSuggestAction() at line 77 copies $request->getPost()->searchEleNo into the ViewModel without validation, and auto-suggest.phtml lines 136-161 echo it raw into double-quoted HTML attributes (onKeyDown, id) and JavaScript string literals inside onClick handlers. A double-quote payload breaks out of the attribute and injects HTML; the injected element becomes live when autosuggest.js inserts the fragment with jQuery .html(), so event handlers fire on DOM insertion. The endpoint has no ACL check and no CSRF token, so any authenticated user can reach it, and the session cookie is configured with cookieHttpOnly:false in SessionConfigurationBuilder.php:20, making the session token readable via document.cookie. Delivery is constrained by SameSite=Strict, requiring an OpenEMR-origin context, and the row loop requires at least one patient record matching queryString. The supplied CVSS 4.0 score is 5.1 with PR:N, but the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, reflecting the authenticated-session requirement; CPE openemr:openemr:* covers versions before 8.5.0.

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 5.4 MEDIUM

Authenticated endpoint with no ACL means PR:L not PR:N; reflected XSS needs same-origin/victim delivery so UI:R; script runs in the browser so S:C with C:L/I:L and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/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 that allows authenticated attackers to execute JavaScript by injecting payloads into the searchEleNo POST parameter of the application/index/search endpoint. Attackers can break out of unencoded HTML attributes in auto-suggest.phtml to inject event handlers that fire on DOM insertion, stealing non-HttpOnly session cookies and patient data.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
most widely-used open-source EHR, but confined to the healthcare vertical
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