Skip to main content

OpenEMR CVE-2026-124452

| EUVDEUVD-2026-119510 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-08 VulnCheck GHSA-7w4f-639v-v9jp
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 document-note write access
  2. Delivery
    Inject script into retina document note
  3. Exploit
    Payload stored unsanitized in notes table
  4. Execution
    Clinician generates Eye Exam patient report
  5. Persist
    JavaScript executes in clinician's session
  6. Impact
    Session cookie exposed to attacker

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 user who holds write access to document notes (PR:L - e.g., a nurse, medical assistant, clinician, or admin able to add a note to a retina/Eye Exam document via the document note UI, controller.php?document&view). The payload must be placed in the note field of a RETINA document tied to an Eye Exam encounter, and the Eye Exam section must actually render (per the advisory the form_eye_postseg ODDISC field must be non-empty to reach the vulnerable Retina block at report.php:2027). Execution is not automatic: a second user (the victim clinician or admin) must subsequently generate that patient's Eye Exam report through Reports → Patient Report (UI:P/required interaction). Limiting factors: prior authenticated access and note-write privilege are mandatory, the attack only matters in deployments using the Eye Exam (eye_mag) form with retina documents, and impact depends on a victim later opening the report - so no fully unauthenticated or self-triggering path exists.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N, score 5.1) and the vuln.today decision label of 'this_month' both point to measured, scheduled remediation rather than immediate action. The vector confirms the two biggest real-world limiters: PR:L means the attacker must already be an authenticated OpenEMR user with document-note write access, and UI:P means exploitation only pays off when a separate victim (a clinician or admin) generates the Eye Exam patient report. No confidentiality/integrity/availability impact lands on the vulnerable system itself (VC/VI/VA:N); the impact is on the subsequent system - the victim's browser session (SC:L/SI:L) - consistent with session-cookie theft via stored XSS. There is no CISA KEV listing and no EPSS score supplied, so there is no evidence of active or widespread exploitation; this is a high-detail disclosure with reproduction steps, not an in-the-wild campaign. No signals conflict here: a mid-5 CVSS, a 'this_month' priority, an available patch, and an insider/multi-step requirement all align on 'patch in the normal cycle.' The main caveat is trust context - in a clinical deployment, lower-privileged staff (nurses, medical assistants) who can add document notes become the threat actor against higher-privileged clinicians, which raises the practical concern above the raw score for organizations with many low-trust note-writers.

Exploit ScenarioDerived

A nurse or medical assistant with document-note write access opens a patient's retina document in the Eye Exam form and saves a note containing a malicious payload such as <img src=x onerror="...">, which is stored unsanitized in the notes table. Later, a clinician or admin generates that patient's Eye Exam report via Reports → Patient Report, and the stored script executes in the clinician's authenticated session, exposing their session cookie. A detailed public reproduction (database seeding plus UI steps) is published in the GHSA advisory; it is a proof-of-concept walkthrough, not verified standalone weaponized exploit code.

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 08, 2026

Stored cross-site scripting in OpenEMR's Eye Exam report (interface/forms/eye_mag/report.php:2555) allows an authenticated user with document-note write access to persist JavaScript in a retina document note, which then executes in a clinician's browser when that patient's Eye Exam report is generated, exposing session cookies. Affects OpenEMR before 8.3.0; the vendor-released fix is 8.3.0. Exploitation requires note-write privileges (PR:L) and a victim who later opens the report (UI:R); no confirmed active exploitation is reported, but a public PoC reference exists.

RemediationAI

Vendor-released patch: OpenEMR 8.3.0. The advisory's minimal authoritative fix is to HTML-encode the note at the render site by changing the vulnerable echo of $note->get_note() at report.php:2555 to text($note->get_note()), matching the text() escaping already used on line 2552; text() wraps htmlspecialchars with ENT_QUOTES. As defense in depth, sanitize on write in Note::persist(): use strip_tags() on the raw note if document notes are intended to be plain text, or htmlspecialchars($rawNote, ENT_QUOTES, 'UTF-8') if angle brackets are meaningful content, applying the transformation before sqlInsert/sqlStatement. After applying the fix, verify by regenerating the affected patient's Eye Exam report and confirming that the payload renders as literal text with no JavaScript execution. Advisory: https://github.com/openemr/openemr/security/advisories/GHSA-xwjf-6q28-9vj7.

Affected VersionsENISA

OpenEMR 0 <8.3.0

Affected Packages

euvd openemr fix: 8.3.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 is a PHP-based electronic health record system. The flaw is CWE-79: Note::get_note() returns the raw notes.note value, and report.php:2555 echoes it without output encoding, while the adjacent date field on line 2552 correctly uses text(), OpenEMR's htmlspecialchars wrapper with ENT_QUOTES. Notes are written unsanitized through C_Document::note_action_process() → Note::persist(); the trigger path is custom_report.php → FormReportRenderer::renderReport() → eye_mag_report() → narrative() → display_draw_image("RETINA", ...) → Document::get_notes() → Note::get_note(). The Retina block is gated at report.php:2027 by a non-empty form_eye_postseg.ODDISC value, and the multi-table eye_mag join requires the satellite rows to exist, so only deployments actively using the Eye Exam form with retina documents are exposed. CPE cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* and EUVD list all OpenEMR versions below 8.3.0. The supplied CVSS 4.0 score is 5.1; the independent assessment uses CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N, consistent with limited confidentiality impact from session-cookie exposure and required victim interaction.

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:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 4.1 MEDIUM

Authenticated low-privilege note-write access gives PR:L, the victim clinician must open the report (UI:R), stored XSS executing in that victim's browser crosses a trust boundary (S:C) exposing session cookies (C:L) with no inherent integrity/availability loss.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/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
Low
User Interaction
Passive
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 08, 2026 - 14:01 EUVD

DescriptionCVE.org

OpenEMR before 8.3.0 contains a stored cross-site scripting vulnerability in interface/forms/eye_mag/report.php that allows authenticated users to inject scripts by adding unescaped document notes. Attackers with document-note write access can store malicious JavaScript in a retina document note that executes when clinicians generate the Eye Exam patient report, exposing session cookies.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
open-source EHR widely used but confined to the healthcare sector
Social Media
1
Sightings
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.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
Poc
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