{"id":"CVE-2026-126477","kind":"vulnerability","aliases":["CVE-2026-126477"],"related":[],"title":"OpenEMR: stored script injection in Eye Exam module via list titles","description":"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.","summary":"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.","severity":"medium","cvss":4.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["healthcare","openemr","other","php","self-hosted"],"not_affected_if":["eye-exam-module-unused","version-8.5.0-or-later"],"how_to_check":"- Check the OpenEMR version in the installed application; `8.5.0` or later is not affected by this entry.\n- Review the Eye_defaults list option titles for unexpected script content.","fix":"- OpenEMR: move to `8.5.0` or later.","status":"open","published_at":"2026-11-13T10:17:57+00:00","first_seen_at":"2026-11-13T10:47:25+00:00","triaged_at":"2026-11-13T10:58:40+00:00","updated_at":"2026-11-13T10:58:40+00:00","category":"other","confidence":0.7,"triage":{"at":"2026-11-13T10:58:40Z","model":"claude-haiku-5-5","output":{"fix":"- OpenEMR: move to `8.5.0` or later.","reach":"network","title":"OpenEMR: stored script injection in Eye Exam module via list titles","impact":"medium","summary":"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.","audience":"businesses","category":"other","nicknames":[],"who_cares":["openemr","healthcare","self-hosted","php"],"confidence":0.7,"fix_status":"available","needs_auth":"yes","worst_case":"Script runs in other users' sessions, exposing their clinical data.","analyst_note":"","how_to_check":"- Check the OpenEMR version in the installed application; `8.5.0` or later is not affected by this entry.\n- Review the Eye_defaults list option titles for unexpected script content.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-8.5.0-or-later","eye-exam-module-unused"],"who_is_affected":"Clinics and organizations running OpenEMR before 8.5.0 that use the Eye Exam (eye_mag) module. Exposure requires an administrator account to store the payload, and the script runs when another authenticated user clicks Defaults. Installations on 8.5.0 or later are not affected.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000735,"input_tokens":4640,"output_tokens":542,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-126477':14A,17A '-2026':13A,16A '8.5.0':27B,67C 'administr':30B,85C 'allow':84C 'anoth':51B 'attack':96C 'authent':117C 'break':105C 'click':56B,123C 'contain':68C 'craft':33B,100C 'cross':72C 'cross-sit':71C 'cve':12A,15A 'default':42B,57B,92C,124C 'edit_list.php':103C 'encod':47B 'exam':7A,39B,79C 'execut':113C 'eye':6A,38B,40B,78C,80C,91C 'eye_base.php':112C 'healthcar':18B 'host':24B 'inject':4A,59B,87C 'javascript':60B,88C 'jqueri':109C 'let':28B 'list':10A,43B,93C 'log':53B 'logged-in':52B 'mag':41B,81C 'modul':8A,82C 'openemr':1A,19B,25B,65C 'option':34B,94C 'output':49B 'php':21B 'run':61B 'script':3A,74C,114C 'self':23B 'self-host':22B 'session':64B,120C 'site':73C 'store':2A,31B,70C,98C 'string':110C 'titl':11A,35B,95C,101C 'unencod':90C 'user':55B,118C 'via':9A,102C 'vulner':75C","nicknames":[],"mitigations":[],"who_affected":"Clinics and organizations running OpenEMR before 8.5.0 that use the Eye Exam (eye_mag) module. Exposure requires an administrator account to store the payload, and the script runs when another authenticated user clicks Defaults. Installations on 8.5.0 or later are not affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["healthcare","medium","openemr","other","php","selfhosted"],"campaign_type":null,"search_a":"'-126477':14A,17A '-2026':13A,16A 'cve':12A,15A 'exam':7A 'eye':6A 'inject':4A 'list':10A 'modul':8A 'openemr':1A 'script':3A 'store':2A 'titl':11A 'via':9A","search_b":"'8.5.0':27B 'administr':30B 'anoth':51B 'click':56B 'craft':33B 'default':42B,57B 'encod':47B 'exam':39B 'eye':38B,40B 'healthcar':18B 'host':24B 'inject':59B 'javascript':60B 'let':28B 'list':43B 'log':53B 'logged-in':52B 'mag':41B 'openemr':19B,25B 'option':34B 'output':49B 'php':21B 'run':61B 'self':23B 'self-host':22B 'session':64B 'store':31B 'titl':35B 'user':55B","search_c":"'8.5.0':67C 'administr':85C 'allow':84C 'attack':96C 'authent':117C 'break':105C 'click':123C 'contain':68C 'craft':100C 'cross':72C 'cross-sit':71C 'default':92C,124C 'edit_list.php':103C 'exam':79C 'execut':113C 'eye':78C,80C,91C 'eye_base.php':112C 'inject':87C 'javascript':88C 'jqueri':109C 'list':93C 'mag':81C 'modul':82C 'openemr':65C 'option':94C 'script':74C,114C 'session':120C 'site':73C 'store':70C,98C 'string':110C 'titl':95C,101C 'unencod':90C 'user':118C 'via':102C 'vulner':75C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-10-28T01:24:21+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-126477","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126477","severity":null,"published_at":"2026-11-13T10:17:57+00:00","modified_at":"2026-11-13T10:17:57+00:00","first_seen_at":"2026-11-13T10:47:25+00:00","fetched_at":"2026-11-13T10:47:25+00:00","note":null}],"documents":[{"id":145197,"url":"https://github.com/openemr/openemr/security/advisories/GHSA-gr77-7xgh-5gwf","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-10-28T01:24:21+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":145198,"url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-eye-exam-defaults-in-eye-base-php","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}