{"id":"CVE-2026-126475","kind":"vulnerability","aliases":["CVE-2026-126475"],"related":[],"title":"OpenEMR: reflected cross-site scripting in search lets logged-in users run JavaScript","description":"OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability that allows authenticated attackers to execute JavaScript by injecting payloads into the searchEleNo POST parameter of the application/index/search endpoint. Attackers can break out of unencoded HTML attributes in auto-suggest.phtml to inject event handlers that fire on DOM insertion, stealing non-HttpOnly session cookies and patient data.","summary":"OpenEMR before 8.5.0 reflects the searchEleNo POST parameter into an unencoded HTML attribute in auto-suggest.phtml, so a crafted payload runs JavaScript in the browser of a logged-in user. An attacker can use this to steal non-HttpOnly session cookies and view patient data.","severity":"medium","cvss":6.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["healthcare","openemr","runtime","self-hosted"],"not_affected_if":["managed-hosting","version-8.5.0-or-later"],"how_to_check":"- Check the installed OpenEMR version in the application's version setting or `composer.json` and compare it with `8.5.0`.\n- Look for the `searchEleNo` parameter handling in `application/index/search` and `auto-suggest.phtml` in the deployed code.","fix":"- OpenEMR: upgrade to `8.5.0` or later.","status":"open","published_at":"2026-11-13T10:17:56+00:00","first_seen_at":"2026-11-13T10:47:25+00:00","triaged_at":"2026-11-13T10:56:27+00:00","updated_at":"2026-11-13T10:56:27+00:00","category":"runtime","confidence":0.7,"triage":{"at":"2026-11-13T10:56:27Z","model":"claude-haiku-5-5","output":{"fix":"- OpenEMR: upgrade to `8.5.0` or later.","reach":"internet","title":"OpenEMR: reflected cross-site scripting in search lets logged-in users run JavaScript","impact":"high","summary":"OpenEMR before 8.5.0 reflects the searchEleNo POST parameter into an unencoded HTML attribute in auto-suggest.phtml, so a crafted payload runs JavaScript in the browser of a logged-in user. An attacker can use this to steal non-HttpOnly session cookies and view patient data.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["openemr","self-hosted","healthcare"],"confidence":0.7,"fix_status":"available","needs_auth":"yes","worst_case":"Attacker runs scripts as a user, stealing session cookies and patient data","analyst_note":"","how_to_check":"- Check the installed OpenEMR version in the application's version setting or `composer.json` and compare it with `8.5.0`.\n- Look for the `searchEleNo` parameter handling in `application/index/search` and `auto-suggest.phtml` in the deployed code.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["managed-hosting","version-8.5.0-or-later"],"who_is_affected":"Clinics and organizations that run OpenEMR themselves before version 8.5.0 are exposed, because the flaw is in the search endpoint of the application. The attacker must have a logged-in account, so exposure depends on who can sign in to the instance. Hosted deployments the vendor manages are handled by the vendor.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000762,"input_tokens":4648,"output_tokens":595,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-126475':18A,21A '-2026':17A,20A '8.5.0':30B,76C 'allow':86C 'application/index/search':102C 'attack':59B,88C,104C 'attribut':40B,111C 'authent':87C 'auto-suggest.phtml':42B,113C 'break':106C 'browser':51B 'contain':77C 'cooki':69B,128C 'craft':45B 'cross':4A,81C 'cross-sit':3A,80C 'cve':16A,19A 'data':73B,131C 'dom':121C 'endpoint':103C 'event':116C 'execut':90C 'fire':119C 'handler':117C 'healthcar':22B 'host':27B 'html':39B,110C 'httpon':67B,126C 'inject':93C,115C 'insert':122C 'javascript':15A,48B,91C 'let':9A 'log':11A,55B 'logged-in':10A,54B 'non':66B,125C 'non-httpon':65B,124C 'openemr':1A,23B,28B,74C 'paramet':35B,99C 'patient':72B,130C 'payload':46B,94C 'post':34B,98C 'reflect':2A,31B,79C 'run':14A,47B 'runtim':24B 'script':6A,83C 'search':8A 'searcheleno':33B,97C 'self':26B 'self-host':25B 'session':68B,127C 'site':5A,82C 'steal':64B,123C 'unencod':38B,109C 'use':61B 'user':13A,57B 'view':71B 'vulner':84C","nicknames":[],"mitigations":[],"who_affected":"Clinics and organizations that run OpenEMR themselves before version 8.5.0 are exposed, because the flaw is in the search endpoint of the application. The attacker must have a logged-in account, so exposure depends on who can sign in to the instance. Hosted deployments the vendor manages are handled by the vendor.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["healthcare","medium","openemr","runtime","selfhosted"],"campaign_type":null,"search_a":"'-126475':18A,21A '-2026':17A,20A 'cross':4A 'cross-sit':3A 'cve':16A,19A 'javascript':15A 'let':9A 'log':11A 'logged-in':10A 'openemr':1A 'reflect':2A 'run':14A 'script':6A 'search':8A 'site':5A 'user':13A","search_b":"'8.5.0':30B 'attack':59B 'attribut':40B 'auto-suggest.phtml':42B 'browser':51B 'cooki':69B 'craft':45B 'data':73B 'healthcar':22B 'host':27B 'html':39B 'httpon':67B 'javascript':48B 'log':55B 'logged-in':54B 'non':66B 'non-httpon':65B 'openemr':23B,28B 'paramet':35B 'patient':72B 'payload':46B 'post':34B 'reflect':31B 'run':47B 'runtim':24B 'searcheleno':33B 'self':26B 'self-host':25B 'session':68B 'steal':64B 'unencod':38B 'use':61B 'user':57B 'view':71B","search_c":"'8.5.0':76C 'allow':86C 'application/index/search':102C 'attack':88C,104C 'attribut':111C 'authent':87C 'auto-suggest.phtml':113C 'break':106C 'contain':77C 'cooki':128C 'cross':81C 'cross-sit':80C 'data':131C 'dom':121C 'endpoint':103C 'event':116C 'execut':90C 'fire':119C 'handler':117C 'html':110C 'httpon':126C 'inject':93C,115C 'insert':122C 'javascript':91C 'non':125C 'non-httpon':124C 'openemr':74C 'paramet':99C 'patient':130C 'payload':94C 'post':98C 'reflect':79C 'script':83C 'searcheleno':97C 'session':127C 'site':82C 'steal':123C 'unencod':109C 'vulner':84C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-10-28T01:25:20+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-126475","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126475","severity":null,"published_at":"2026-11-13T10:17:56+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":145193,"url":"https://github.com/openemr/openemr/security/advisories/GHSA-pv5m-vjm7-x355","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-10-28T01:25:20+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":145194,"url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-reflected-xss-via-searcheleno-in-auto-suggest-endpoint","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"}