Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin/super ACL account
-
DeliveryStore crafted title via edit_list.php
-
ExploitVictim opens Eye Exam, clicks Defaults
-
ExecutionPayload breaks out of jQuery string
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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-124947
GHSA-m3ff-w7w8-v63r
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB