{"id":"CVE-2026-126484","kind":"vulnerability","aliases":["CVE-2026-126484"],"related":[],"title":"OpenEMR: stored script injection via fee sheet comments runs in staff sessions","description":"OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in printed_fee_sheet.php that allows authenticated portal patients to inject script by setting unescaped appointment comments (pc_hometext). Attackers can submit HTML payloads via the form_comments field in add_edit_event_user.php that execute when staff open the patient's fee sheet, acting within the staff session.","summary":"OpenEMR before 8.5.0 does not escape appointment comments shown on printed fee sheets. A logged-in patient can store script in those comments, which runs in the browser of staff who open the patient's fee sheet, acting within the staff session.","severity":"medium","cvss":5.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["healthcare","openemr","php","runtime","self-hosted"],"not_affected_if":["no-patient-portal","version-8.5.0-or-later"],"how_to_check":"- Check the OpenEMR version in the installation; versions before `8.5.0` are exposed.\n- Look for patient portal access in the deployment, since the attacker must be an authenticated portal patient.","fix":"- OpenEMR: move to `8.5.0` or later.","status":"open","published_at":"2026-11-13T10:17:58+00:00","first_seen_at":"2026-11-13T10:47:26+00:00","triaged_at":"2026-11-13T10:56:52+00:00","updated_at":"2026-11-13T10:56:52+00:00","category":"runtime","confidence":0.7,"triage":{"at":"2026-11-13T10:56:52Z","model":"claude-haiku-5-5","output":{"fix":"- OpenEMR: move to `8.5.0` or later.","reach":"internet","title":"OpenEMR: stored script injection via fee sheet comments runs in staff sessions","impact":"medium","summary":"OpenEMR before 8.5.0 does not escape appointment comments shown on printed fee sheets. A logged-in patient can store script in those comments, which runs in the browser of staff who open the patient's fee sheet, acting within the staff session.","audience":"businesses","category":"runtime","nicknames":[],"who_cares":["openemr","healthcare","self-hosted","php"],"confidence":0.7,"fix_status":"available","needs_auth":"yes","worst_case":"Script runs in staff session, letting attacker act as staff member","analyst_note":"Product data lists no product ranges; fixed version 8.5.0 comes from the description only.","how_to_check":"- Check the OpenEMR version in the installation; versions before `8.5.0` are exposed.\n- Look for patient portal access in the deployment, since the attacker must be an authenticated portal patient.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["version-8.5.0-or-later","no-patient-portal"],"who_is_affected":"Clinics and practices that run OpenEMR with the patient portal enabled, where patients can add appointment comments. Staff who open printed fee sheets are the victims. Installations on `8.5.0` or later, or without patient portal accounts, are not exposed per the sources.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000738,"input_tokens":4636,"output_tokens":548,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-126484':15A,18A '-2026':14A,17A '8.5.0':28B,71C 'act':64B,119C 'add_edit_event_user.php':108C 'allow':83C 'appoint':32B,93C 'attack':97C 'authent':84C 'browser':54B 'comment':8A,33B,49B,94C,105C 'contain':72C 'cross':76C 'cross-sit':75C 'cve':13A,16A 'escap':31B 'execut':110C 'fee':6A,37B,62B,117C 'field':106C 'form':104C 'healthcar':19B 'hometext':96C 'host':25B 'html':100C 'inject':4A,88C 'log':41B 'logged-in':40B 'open':58B,113C 'openemr':1A,20B,26B,69C 'patient':43B,60B,86C,115C 'payload':101C 'pc':95C 'php':21B 'portal':85C 'print':36B 'printed_fee_sheet.php':81C 'run':9A,51B 'runtim':22B 'script':3A,46B,78C,89C 'self':24B 'self-host':23B 'session':12A,68B,123C 'set':91C 'sheet':7A,38B,63B,118C 'shown':34B 'site':77C 'staff':11A,56B,67B,112C,122C 'store':2A,45B,74C 'submit':99C 'unescap':92C 'via':5A,102C 'vulner':79C 'within':65B,120C","nicknames":[],"mitigations":[],"who_affected":"Clinics and practices that run OpenEMR with the patient portal enabled, where patients can add appointment comments. Staff who open printed fee sheets are the victims. Installations on `8.5.0` or later, or without patient portal accounts, are not exposed per the sources.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["healthcare","medium","openemr","php","runtime","selfhosted"],"campaign_type":null,"search_a":"'-126484':15A,18A '-2026':14A,17A 'comment':8A 'cve':13A,16A 'fee':6A 'inject':4A 'openemr':1A 'run':9A 'script':3A 'session':12A 'sheet':7A 'staff':11A 'store':2A 'via':5A","search_b":"'8.5.0':28B 'act':64B 'appoint':32B 'browser':54B 'comment':33B,49B 'escap':31B 'fee':37B,62B 'healthcar':19B 'host':25B 'log':41B 'logged-in':40B 'open':58B 'openemr':20B,26B 'patient':43B,60B 'php':21B 'print':36B 'run':51B 'runtim':22B 'script':46B 'self':24B 'self-host':23B 'session':68B 'sheet':38B,63B 'shown':34B 'staff':56B,67B 'store':45B 'within':65B","search_c":"'8.5.0':71C 'act':119C 'add_edit_event_user.php':108C 'allow':83C 'appoint':93C 'attack':97C 'authent':84C 'comment':94C,105C 'contain':72C 'cross':76C 'cross-sit':75C 'execut':110C 'fee':117C 'field':106C 'form':104C 'hometext':96C 'html':100C 'inject':88C 'open':113C 'openemr':69C 'patient':86C,115C 'payload':101C 'pc':95C 'portal':85C 'printed_fee_sheet.php':81C 'script':78C,89C 'session':123C 'set':91C 'sheet':118C 'site':77C 'staff':112C,122C 'store':74C 'submit':99C 'unescap':92C 'via':102C 'vulner':79C 'within':120C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-10-28T01:27:47+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/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-126484","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126484","severity":null,"published_at":"2026-11-13T10:17:58+00:00","modified_at":"2026-11-13T10:17:58+00:00","first_seen_at":"2026-11-13T10:47:26+00:00","fetched_at":"2026-11-13T10:47:26+00:00","note":null}],"documents":[{"id":145211,"url":"https://github.com/openemr/openemr/security/advisories/GHSA-c997-5w2m-grrf","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-10-28T01:27:47+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":145212,"url":"https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-printed-fee-sheet-appointment-comments","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"}