CVE-2026-126477
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 thro…
Impact
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.
An attacker can exploit this over the network, with an administrator account, but a user has to do something, such as open a file or a link. If it succeeds: low risk of data being read, low risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected products · Openemr
| Product | Affected versions |
|---|---|
| Openemr | before 8.5.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/openemr/openemr/security/advisories/GHSA-gr77-7xgh-5gwf
- https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-eye-exam-defaults-in-eye-base-php
- https://github.com/advisories/GHSA-m3ff-w7w8-v63r
- https://nvd.nist.gov/vuln/detail/CVE-2026-126477