---
id: "CVE-2026-126477"
page: "https://infrastack.ai/live/CVE-2026-126477"
kind: "vulnerability"
aliases: ["CVE-2026-126477"]
title: "OpenEMR: stored script injection in Eye Exam module via list titles"
severity: "medium"
cvss: 4.8
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "php", "self-hosted"]
not_affected_if: ["eye-exam-module-unused", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:57+00:00"
first_seen_at: "2026-11-13T10:47:25+00:00"
updated_at: "2026-11-13T10:58:40+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126477", "first_seen_at": "2026-11-13T10:47:25+00:00"}]
exploit_sources: []
---

# OpenEMR: stored script injection in Eye Exam module via list titles

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

OpenEMR before 8.5.0 lets an administrator store a crafted option title in the Eye Exam (eye_mag) defaults list that is not encoded on output. When another logged-in user clicks Defaults, the injected JavaScript runs in their session.

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

## How to check

- Check the OpenEMR version in the installed application; `8.5.0` or later is not affected by this entry.
- Review the Eye_defaults list option titles for unexpected script content.

## Fix

- OpenEMR: move to `8.5.0` or later.

## Timeline

- 2026-11-13T10:47:25+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126477

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-gr77-7xgh-5gwf
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-eye-exam-defaults-in-eye-base-php

## From the sources

OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in the Eye Exam (eye_mag) module that allows administrators to inject JavaScript through unencoded Eye_defaults list option titles. Attackers can store a crafted title via edit_list.php that breaks out of a jQuery string in eye_base.php, executing script in any authenticated user's session when they click Defaults.

---

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