Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with Eye Exam edit permission
-
DeliveryInject textarea-breakout script into Next Visit Orders
-
ExploitTrigger AJAX save of the form
-
ExecutionVictim opens poisoned Eye Exam editor
-
ImpactScript executes, stealing session cookie or clinical 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 | Exploitation requires an authenticated OpenEMR account with permission to add or edit Eye Exam encounter forms (encounters|notes; the default Clinicians and Physicians groups have this), the Eye Exam (eye_mag) form module enabled (enabled by default), and a victim user who opens the specific affected Eye Exam editor (the only trigger - encounter summaries, visit-history popovers, reports, and PDFs encode this field and do not trigger it). Limiting factors: the attacker must be authenticated with the stated permission, victim interaction is mandatory (UI:P), and installations that do not use the Eye Exam form are not practically exposed. A deployment-added CSP blocking inline scripts would mitigate the supplied payload, but OpenEMR ships no script-src CSP for this page, and the core session cookie is deliberately JavaScript-readable, increasing impact. |
| Impact | The CVSS 4.0 score of 5.1 (medium) is consistent with the vector's constraints: AV:N but PR:L (an authenticated account with Eye Exam edit permission) and UI:P (a victim must open the Eye Exam editor), with only low vulnerable- and subsequent-system impact (VC:L/VI:L/SC:L/SI:L, VA/SA:N). This is not a mass-exploitable, unauthenticated flaw. No CISA KEV listing is present, so there is no confirmed active exploitation, and no EPSS score was supplied, so widespread exploitation probability cannot be quantified from the input. A detailed public PoC (payload plus step-by-step reproduction) is published in the GHSA advisory, raising practical exploitability for anyone who already holds a clinician-level account. The vuln.today decision label is this_month (not act_now/emergency), which matches the picture: a real, prioritizable issue rather than a drop-everything emergency. The notable risk amplifier is the privilege-crossing potential - a lower-privileged clinician can poison a form that a physician or administrator later opens, executing script in that higher-privileged session. The advisory also notes this is a residual sink left by the incomplete fix for CVE-2026-33299, so environments that believed they were patched may still be exposed. |
| Exploit ScenarioDerived | An authenticated clinician with Eye Exam edit permission enters a payload that closes the textarea (</textarea><script>...</script><textarea>) into the free-text Next Visit Orders field, then interacts with another control so the editor's AJAX submit_form() saves the value to form_eye_mag_orders. When a different, potentially higher-privileged user later opens that Eye Exam editor, view.php renders the stored value unencoded inside a <textarea> and the script executes in the victim's OpenEMR origin, enabling theft of the script-readable session cookie or clinical data. A detailed public PoC with a working payload is published in the GHSA advisory. |
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 form lets an authenticated user who can add or edit Eye Exam encounter forms persist HTML in the free-text 'Next Visit Orders' PLAN[] field, which the Eye Exam editor later renders unencoded inside a <textarea>, so attacker JavaScript runs in the session of any clinician who opens that form. The sink survived the earlier Eye Exam XSS remediation (CVE-2026-33299 / PR #11186, which encoded report.php but not view.php), and the vendor advisory confirms affected releases from 5.0.2 through 8.3.0, including 8.0.0.2, with a fix released in OpenEMR 8.5.0. Exploitation requires an account with encounters|notes permission (default Clinicians and Physicians groups qualify) plus a victim opening the specific Eye Exam editor; there is no CISA KEV entry and no EPSS signal supplied, and a proof-of-concept payload with step-by-step reproduction is published in the vendor's GitHub advisory GHSA-rgv4-6mf9-hxwx.
RemediationAI
Upgrade to OpenEMR 8.5.0, the version in which the vendor fix lands, using the release referenced from the GitHub advisory GHSA-rgv4-6mf9-hxwx; because the earlier CVE-2026-33299 remediation (PR #11186) only encoded report.php, deployments already on 8.0.0.2 through 8.3.0 remain vulnerable to this residual view.php sink and must move to 8.5.0. Where upgrading is not immediately possible, note that the attack path depends on the eye_mag Eye Exam form module, so disabling that form (it is enabled by default) removes exposure at the cost of losing Eye Exam documentation, and restricting who holds encounters|notes permission to trusted staff shrinks the pool of accounts that can plant a payload, though neither measure stops a permitted clinician from poisoning a form another user opens. A deployment-added Content Security Policy that blocks inline scripts would neutralize the supplied payload, but OpenEMR ships no script-src policy for this page and such a policy must be tuned so it does not break the Eye Exam editor's other inline JavaScript; the core OpenEMR session cookie remains JavaScript-readable by design, so CSP does not remove the session-theft impact. Reviewing form_eye_mag_orders rows with ORDER_DETAILS containing '</textarea' or '<script' can identify previously planted payloads, and readers should treat encounter summaries, visit-history popovers, reports and PDFs as encoded, non-triggering surfaces for this value.
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
The flaw is CWE-79 in the PHP-based OpenEMR electronic health record, specifically the eye_mag encounter form. The Eye Exam editor's submit_form() in interface/forms/eye_mag/js/eye_base.php serializes the entire #eye_mag form with jQuery and POSTs it to interface/forms/eye_mag/save.php on blur, change and click handlers attached to dozens of unrelated controls, so an entered free-text order is carried into the next AJAX save; save.php loops over $_POST['PLAN'] and stores each non-empty value unchanged into form_eye_mag_orders.ORDER_DETAILS (varchar(255)). On load, view.php fetches those rows and echoes the last unmatched order directly into <textarea id="PlanN" name="PLAN[]"> without output encoding. Because HTML textarea content is parsed in the RCDATA state, a literal </textarea> terminates it and subsequent markup such as <script> is parsed and executed, so escaping is required even for values that appear to sit inside a textarea. The same value is safely handled in report.php via text(), the escape added by the previous Eye Exam fix, and encounter summaries, visit-history popovers, reports and PDFs also encode the field; only the view.php textarea sink remains raw. Impact is amplified because OpenEMR ships no script-src Content Security Policy for the Eye Exam editor and deliberately keeps the core session cookie readable from JavaScript for its session-restoration mechanism, so a successful payload can read the script-accessible session identifier, access clinical data visible to the victim, and act in the victim's same-origin context across privilege boundaries (for example clinician to physician or administrator).
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:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated Eye Exam edit permission gives PR:L, victim must open the editor so UI:R, stored XSS crosses into the victim's session (S:C) with limited C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows authenticated users with Eye Exam edit permission to inject scripts via the Next Visit Orders PLAN[] field. Attackers can store a payload closing the textarea in view.php, executing JavaScript when another user opens the Eye Exam editor to steal session identifiers or clinical data.
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-124962
GHSA-9g56-gcfx-6vc5
NVD
CVE.org
EPSS
Exploit-DB