Skip to main content

OpenEMR CVE-2026-126476

| EUVDEUVD-2026-124948 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-jrm3-23cv-wv83
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 or leverage authenticated session
  2. Delivery
    Craft single-quote searchMode payload
  3. Exploit
    Induce victim POST to application/index/search
  4. Execution
    onerror fires on jQuery .html() insertion
  5. Impact
    Read non-HttpOnly cookie and hijack session

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 to reach the Application module auto-suggest endpoint (application/index/search); the advisory confirms the controller action has NO ACL check, so any authenticated user of any role/group suffices, and NO CSRF token is required. The payload must use a single-quote terminator to break out of the single-quoted onClick attribute (a double-quote payload stays inert). At least one patient record whose name matches the queryString value must exist so the auto-suggest result row renders and the searchMode-bearing onClick is emitted. The victim's browser must submit the request (reflected XSS, UI:A), though no explicit click is needed afterward because jQuery .html() insertion activates the injected <img onerror> immediately. Impact is amplified because the OpenEMR session cookie is set without HttpOnly (cookieHttpOnly: false), making the token directly readable via document.cookie. The only complete fix stated by the vendor is updating to 8.5.0 (with input allow-listing of searchMode and output encoding as the code-level remediation).

Impact

Signals point to a genuine but moderate-priority issue rather than an emergency. The vendor CVSS 4.0 vector (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, score 5.1 Medium) describes a network-reachable, low-complexity flaw whose impact is confined to the subsequent system (the victim's browser/session: SC:L/SI:L) with no direct impact on the OpenEMR server itself (VC/VI/VA:N), and it requires active user interaction (UI:A). No EPSS score and no KEV listing are provided, so there is no evidence of active or at-scale exploitation; CISA KEV status is therefore no public exploit identified as actively exploited. However, the GHSA advisory contains a fully documented, root-cause-level proof of concept with an exact request, payload (searchMode=x'><img src=x onerror=alert(document.cookie)>), and a rendered live response the reporter states was confirmed against a test instance - so a detailed public PoC reference exists; it is not packaged as a standalone weaponized exploit tool. The vuln.today Decision label is this_month, consistent with a patch-this-cycle posture rather than act_now. Weighing these: this is a real, verified, reporter-confirmed reflected XSS in a healthcare EHR with directly stealable session cookies (no HttpOnly flag), which raises impact above a typical XSS; but exploitation needs an authenticated context and per-victim social engineering (not automatable at scale), and the server-side confidentiality/integrity impact is indirect. Note one tension to verify: the CVSS vector marks PR:N (attacker needs no privileges), while the advisory states the vulnerable endpoint has no ACL check but still requires an authenticated session to reach - PR:N is defensible for reflected XSS (the victim's session, not the attacker's privileges, is leveraged), but defenders should understand the endpoint is not anonymously reachable.

Exploit ScenarioDerived

An attacker with any low-privilege OpenEMR account (or who can lure a logged-in user) crafts an auto-suggest search request whose searchMode parameter carries a single-quote breakout payload and targets a query string matching an existing patient name. When the victim's browser submits it to application/index/search, OpenEMR echoes searchMode unencoded into a single-quoted onClick attribute, and jQuery's .html() insertion immediately activates an injected <img onerror> handler. Because the session cookie lacks the HttpOnly flag, the payload reads document.cookie and exfiltrates the session token, enabling session hijacking and patient-data disclosure; a detailed, reporter-confirmed PoC for this 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

Reflected cross-site scripting in OpenEMR's Application module auto-suggest endpoint (application/index/search) allows an attacker to run arbitrary JavaScript inside another user's authenticated session by abusing the searchMode POST parameter, which is echoed unencoded into a single-quoted onClick attribute. Every OpenEMR release before 8.5.0 is affected, and the advisory notes the controller action has no ACL check and the endpoint requires no CSRF token, so any authenticated user of any role can reach it; the injected element fires as soon as the fragment is inserted via jQuery .html(), without a further click. Impact is amplified because the OpenEMR session cookie is issued without HttpOnly, so document.cookie exposes the session token directly, enabling session hijacking and patient-data disclosure; the issue is not listed in CISA KEV, though the vendor advisory documents a proof-of-concept payload the reporter confirmed against a live test instance. Fixed in 8.5.0.

RemediationAI

Update OpenEMR to 8.5.0, the fixed version named in the vendor advisory and the package data; the vendor states that updating is the only complete fix, and no workaround is documented. For deployments that maintain their own patched builds, the advisory's code-level remediation is twofold: in IndexController::autoSuggestAction() constrain searchMode to an allow-list of known values and reject anything else instead of passing it through as a freeform string, and in auto-suggest.phtml emit searchMode through escapeHtml() for the HTML attribute position and js_escape()/escapeJs() for the JavaScript string contents of the onClick handler, matching the escapeHtml() already applied to the patient-name value in the adjacent fill(...) call. Advisory details are at https://github.com/openemr/openemr/security/advisories/GHSA-8mwp-vq82-x5mr, and VulnCheck's write-up is at https://www.vulncheck.com/advisories/openemr-before-8.5.0-reflected-xss-via-auto-suggest-searchmode-parameter.

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 Application module is a Zend Framework component under interface/modules/zend_modules. IndexController::autoSuggestAction() reads searchMode from $request->getPost() with no validation and passes it straight into the ViewModel, which auto-suggest.phtml interpolates raw into a double-quoted JavaScript string nested inside a single-quoted onClick handler attribute. Because that value sits inside single quotes, the breakout requires a single-quote terminator; a double quote stays inert, unlike the separately reported searchEleNo parameter that is emitted into double-quoted attributes. The action calls setTerminal(true) and returns a bare HTML fragment that OpenEMR's own autosuggest.js inserts with jQuery .html(), creating live DOM nodes so inline handlers such as <img onerror> execute immediately on insertion. This is a classic CWE-79 output-encoding failure: the adjacent fill(...) call in the same view correctly applies escapeHtml() to the patient name, but no escapeHtml()/escapeJs()/attr() is applied to searchMode, and the code-level remedy is to allow-list searchMode to known values and encode it for both the attribute and JavaScript contexts. The impact is worsened by SessionConfigurationBuilder.php setting cookieHttpOnly to false, and by the absence of both an ACL check on the action and a CSRF token on the endpoint. Exploitation additionally requires at least one existing patient record matching the queryString value so the result row bearing the onClick attribute is rendered.

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

Reflected XSS exploited via a crafted request the authenticated victim must submit (UI:R, PR:N), executing script that crosses into the browser context (S:C) with limited confidentiality/integrity impact and no availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/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 in the Application module's auto-suggest endpoint, which echoes the searchMode POST parameter unencoded into a single-quoted onClick attribute. Attackers can induce an authenticated user to submit a single-quote payload to application/index/search, executing arbitrary JavaScript in that user's session to steal session cookies or disclose patient data.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
most popular open-source EHR, common in clinics but not ubiquitous enterprise-wide
Data Quality
6 sources
Confidence: High

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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

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