Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with document-note write access
-
DeliveryInject script into retina document note
-
ExploitPayload stored unsanitized in notes table
-
ExecutionClinician generates Eye Exam patient report
-
PersistJavaScript executes in clinician's session
-
ImpactSession 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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-119510
GHSA-7w4f-639v-v9jp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB