Home › CVE › JavaScript
CVE-2026-126477 — openemr
One of 80 openemr vulnerabilities published together by NVD: our article covers all of them.
JavaScriptPHPWebVulnerabilitiesSummary
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.
Severity breakdown
Medium · 4.6
An attacker with administrator rights can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, an administrator account
- User action needed
- yes, a user must deliberately do something
- Impact
- none
- Impact on other systems
- low on confidentiality and integrity, none on availability
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | < 8.5.0 | 8.5.0 |
Public exploits
Exploit available
References by type
Other references
Affected
- openemr
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-126477?
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in the Eye Exam (eyemag) module that allows administrators to inject JavaScript through unencoded Eyedefaults list option titles. Attackers can store a crafted title via editlist.php that breaks out of a jQuery string in eyebase.php, executing script in any authenticated user's session when they click Defaults. Weakness type: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (CWE-79).
How severe is CVE-2026-126477?
CVE-2026-126477 has a CVSS 4.0 base score of 4.6 (medium), from the CNA (vulncheck.com). An attacker with administrator rights can exploit this over the network if a user is tricked into an action.
Is CVE-2026-126477 being exploited?
Not as far as is known: CVE-2026-126477 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126477?
openemr < 8.5.0 (fixed in 8.5.0).
How do I fix CVE-2026-126477?
Update to a fixed release: openemr 8.5.0.
Timeline & sources
References
Related vulnerabilities & news
- Joomla Extension Vulnerability Allows Stored XSS via Link Validation
- Joomla Extension Vulnerability Allows Stored XSS via Thumbnail Widget
- Joomla Extension Vulnerability Allows Stored XSS in Smart Slider 3
- NextMove Lite Plugin Vulnerable to Stored XSS in WooCommerce
- AI Engine – MCP Server & AI Chatbot for WordPress Vulnerable to Limited Arbitrary File Upload