Skip to main content

OpenEMR EUVDEUVD-2026-124962

| CVE-2026-126462 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-9g56-gcfx-6vc5
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 with Eye Exam edit permission
  2. Delivery
    Inject textarea-breakout script into Next Visit Orders
  3. Exploit
    Trigger AJAX save of the form
  4. Execution
    Victim opens poisoned Eye Exam editor
  5. Impact
    Script 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% 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 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

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

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:P/VC:L/VI:L/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
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
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 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

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
leading open-source EHR but healthcare-specific, moderate real-world footprint
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.2%
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