Skip to main content

OpenEMR EUVDEUVD-2026-124947

| CVE-2026-126477 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-m3ff-w7w8-v63r
4.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain admin/super ACL account
  2. Delivery
    Store crafted title via edit_list.php
  3. Exploit
    Victim opens Eye Exam, clicks Defaults
  4. Execution
    Payload breaks out of jQuery string
  5. Impact
    Execute JavaScript in victim 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

Not remote-unauthenticated. Storing the payload requires a one-time write to the provider eye-exam defaults list (list_id=Eye_defaults_<providerID>) via the Lists admin page interface/super/edit_list.php, which enforces a CSRF token (CsrfUtils::checkCsrfInput) and the admin/super ACL. The injected row must be active (activity='1') and its notes column must be a non-empty string (e.g. 'EXT') to pass the is_string() guard at eye_base.php:3488-3490. The payload only fires when the Eye Exam form is opened for an encounter whose provider_id matches the injected list (default practice provider is 1 → Eye_defaults_1), and only after a user clicks the red Defaults button and confirms the 'Replace all exam findings' prompt. Limiting factors: high-privilege (admin/super) write access needed to plant the payload, mandatory victim user interaction (click + confirmation), and a required provider-ID match. Mitigating factor on scope: once stored, the payload affects ANY authenticated user who triggers it, not just admins. The only complete fix stated by the vendor is updating to 8.5.0 (which adds JavaScript-safe output encoding of $title/$optionId at the echo site).

Impact

This is a genuine but lower-priority (CVSS 4.0 base 4.6, Medium) stored XSS. The decisive signal is PR:H in the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:A): the storage step requires an admin/super ACL account plus a valid CSRF token, so an attacker must already hold high privilege to plant the payload. The impact is also bounded - VC/VI/VA are all N and only the subsequent-system metrics SC:L/SI:L register impact, consistent with script running in another user's browser session rather than compromising the OpenEMR host itself. The vuln.today decision label is 'this_month' (not act_now/emergency), and there is no CISA KEV listing and no EPSS score in the supplied data, so there is no evidence of active or widespread exploitation. The key asymmetry worth flagging to defenders: storage needs admin, but UI:A reflects that the trigger affects ANY authenticated user who opens the Eye Exam form and clicks Defaults, regardless of their privilege - so a rogue or compromised admin account can harvest session cookies from lower-privileged clinical staff. Treat this as an insider/privilege-abuse and defense-in-depth concern rather than an externally-driven emergency. No EPSS or KEV data was provided to corroborate or contradict the Medium rating.

Exploit ScenarioDerived

An attacker holding (or having compromised) an OpenEMR admin/super account uses the Lists administration page (edit_list.php) to store a crafted Eye_defaults list option title such as TESTXSS");alert(document.cookie);// which breaks out of the jQuery .val("...") string in eye_base.php. Later, any authenticated clinician who opens an Eye Exam encounter for provider ID 1 and clicks the red Defaults button (confirming the prompt) executes the attacker's JavaScript in their session, enabling cookie/session theft. The GHSA advisory includes a full proof-of-concept with the exact HTTP requests and payload.

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

Stored cross-site scripting in OpenEMR's Eye Exam (eye_mag) module lets a high-privileged administrator plant JavaScript inside an Eye Exam default-value option title, which is later echoed unencoded into a jQuery string in eye_base.php and executes in the session of any authenticated user who opens the Eye Exam form and clicks the red Defaults button. All OpenEMR releases before 8.5.0 are affected (CPE cpe:2.3:a:openemr:openemr:*; EUVD lists 0 to <8.5.0). Attack prerequisites are substantial: planting the row requires authenticated admin/super access to interface/super/edit_list.php plus a valid CSRF token, the injected row must be active with a non-empty notes value, the encounter's provider_id must match the injected Eye_defaults_<providerID> list (default provider 1), and the victim must confirm the 'Replace all exam findings' prompt, so the vendor's CVSS 4.0 base is 4.6 (Medium) and our assessed 3.1 vector is AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N. The public GHSA advisory includes reproduction steps and screenshots; a public PoC reference exists, it is not verified as working exploit code, and there is no CISA KEV confirmation of active exploitation.

RemediationAI

Vendor-released patch: OpenEMR 8.5.0, which the advisory describes as adding JavaScript-safe output encoding of $title and $optionId at the echo site in eye_base.php (around line 3494); the vendor states updating is the only complete fix, so plan the upgrade under the current this_month priority rather than relying on configuration changes. Details and credit (Keith Lee, Foregenix) are in https://github.com/openemr/openemr/security/advisories/GHSA-gr77-7xgh-5gwf and https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-eye-exam-defaults-in-eye-base-php. Until the upgrade is applied, compensating controls address the write side only, since execution requires the victim to click Defaults: audit and trim admin/super ACL membership so that only trusted staff can reach the Lists administration page, and periodically inspect the list_options table for rows with list_id LIKE 'Eye_defaults_%' whose title contains quote, parenthesis or script characters, clearing them - this reduces the chance of a stored payload but does not fix the missing output encoding and does not protect users against a malicious administrator. Note that the write path is already CSRF-protected, so further CSRF hardening does not reduce this exposure, and restricting the provider-ID match or removing access to the Eye Exam form would break clinical workflows.

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

CWE-79 (improper neutralization of input during web page generation) in a PHP application. OpenEMR stores per-provider Eye Exam default values in the list_options table under list_id Eye_defaults_<providerID>; the write path is interface/super/edit_list.php, which persists option_id and title verbatim and enforces only a CSRF token and the admin/super ACL. The sink is interface/forms/eye_mag/js/eye_base.php, a .php file served directly as a <script src> from view.php, where the #EXAM_defaults click handler builds a jQuery statement server-side and echoes each active row as $("#" . $optionId . ").val("" . $title . "").css(...) at approximately line 3494 with no attr(), escapeJs() or js_escape(). A title such as TESTXSS");alert(document.cookie);// closes the double-quoted .val() argument and the call, leaving live JavaScript, with the trailing .css() fragment commented out. Because the file is served as a script with no intermediate filter, there is no encoding layer between storage and execution; the only guards are the is_string() check on the notes column (lines 3488-3490) and the activity='1' filter on the row, plus the requirement that the rendered encounter's provider_id match the injected list. Execution requires the victim to click Defaults and confirm the replacement prompt; the trigger does not fire on page load.

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 4.6 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 4.8 MEDIUM

Storage needs admin/super ACL so PR:H; victim must click Defaults and confirm, so UI:R; script executes in a different user's session (S:C) with limited confidentiality/integrity impact and no availability loss.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/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
High
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 stored cross-site scripting vulnerability in the Eye Exam (eye_mag) module that allows administrators to inject JavaScript through unencoded Eye_defaults list option titles. Attackers can store a crafted title via edit_list.php that breaks out of a jQuery string in eye_base.php, executing script in any authenticated user's session when they click Defaults.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
popular open-source EHR, broad healthcare-sector use but not universal
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

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
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