---
id: "CVE-2026-124452"
page: "https://infrastack.ai/live/CVE-2026-124452"
kind: "vulnerability"
aliases: ["CVE-2026-124452"]
title: "OpenEMR: stored script injection in eye exam report steals clinician sessions"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "php", "self-hosted"]
not_affected_if: ["no-document-note-write-access", "openemr-8.3.0-or-later"]
published_at: "2026-11-08T14:18:12+00:00"
first_seen_at: "2026-11-08T14:48:39+00:00"
updated_at: "2026-11-08T14:50:57+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124452", "first_seen_at": "2026-11-08T14:48:39+00:00"}]
exploit_sources: []
---

# OpenEMR: stored script injection in eye exam report steals clinician sessions

Link for people: https://infrastack.ai/live/CVE-2026-124452 (this .md is for agents)

OpenEMR before 8.3.0 does not escape document notes shown in the Eye Exam patient report, so a stored script in a retina note runs when a clinician generates the report. An attacker who can write document notes can capture the clinician's session cookies.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed OpenEMR version; versions below `8.3.0` are in range.
- Review who holds document-note write access in the OpenEMR install.

## Fix

- OpenEMR: `8.3.0` or later, per the sources.

## Timeline

- 2026-11-08T14:48:39+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-124452

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-xwjf-6q28-9vj7
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.3.0-stored-xss-via-eye-exam-document-notes

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
