---
id: "CVE-2026-126484"
page: "https://infrastack.ai/live/CVE-2026-126484"
kind: "vulnerability"
aliases: ["CVE-2026-126484"]
title: "OpenEMR: stored script injection via fee sheet comments runs in staff sessions"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["no-patient-portal", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:58+00:00"
first_seen_at: "2026-11-13T10:47:26+00:00"
updated_at: "2026-11-13T10:56:52+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126484", "first_seen_at": "2026-11-13T10:47:26+00:00"}]
exploit_sources: []
---

# OpenEMR: stored script injection via fee sheet comments runs in staff sessions

Link for people: https://infrastack.ai/live/CVE-2026-126484 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the OpenEMR version in the installation; versions before `8.5.0` are exposed.
- 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.

## Timeline

- 2026-11-13T10:47:26+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126484

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-c997-5w2m-grrf
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-printed-fee-sheet-appointment-comments

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
