Skip to main content

OpenEMR CVE-2026-126484

| EUVDEUVD-2026-124940 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-4jq4-36fp-37jw
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as portal patient
  2. Delivery
    Book/edit appointment with XSS payload in comments
  3. Exploit
    Payload stored unescaped in pc_hometext
  4. Execution
    Staff opens patient's printed fee sheet
  5. Impact
    Script executes in staff session context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated OpenEMR portal patient account: the write path in portal/add_edit_event_user.php is gated on pid and patient_portal_onsite_two being set in the session, so the patient portal (onsite) feature must be enabled and the attacker must hold a portal login. The attacker sets $_POST['form_comments'], which is stored verbatim into pc_hometext with no strip_tags or HTML encoding. Exploitation is further limited by UI:P - the payload only fires when billing or clinical staff open the printed fee sheet (interface/patient_file/printed_fee_sheet.php) for that specific patient's encounter, a routine but attacker-uncontrolled action. Affected in all versions before 8.5.0; the portal's own rendering of the value is safe (escaped via attr()), so only the fee-sheet print path is the sink.

Impact

This is a genuine but moderate-priority issue, not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N with subsequent-system SC:L/SI:L) scores 5.1 (Medium), and the signals are internally consistent: network-reachable, low attacker privilege (a portal patient account), but passive user interaction required (UI:P) because staff must open the victim patient's printed fee sheet for the stored payload to fire. No EPSS score is provided and the CVE is not on CISA KEV, so there is no evidence of active or widespread exploitation; the vuln.today decision label is 'this_month', consistent with a cross-privilege stored XSS that is real but gated by staff action rather than mass-exploitable. The notable aspect is the privilege-crossing direction: the lowest-trust account in the system (a portal patient) can plant script that runs in a clinical/billing staff session, which is why it is scored Medium rather than Low. No conflicting signals were found between the CVSS metrics and the description; the chief limiter is that exploitation depends on a staff member opening that specific patient's fee sheet.

Exploit ScenarioDerived

An authenticated OpenEMR portal patient books or edits an appointment and sets the comment field to an HTML/script payload (e.g. an img onerror handler), which is stored verbatim in pc_hometext. When billing or clinical staff later open that patient's printed fee sheet during routine billing, the unescaped markup executes in the staff member's browser within the OpenEMR origin, letting it act with the staff session. A public PoC reference exists in the vendor advisory; it is source analysis of the code at HEAD and is not verified as working exploit code against a live instance.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Stored cross-site scripting in OpenEMR's printed fee sheet (interface/patient_file/printed_fee_sheet.php) allows an authenticated patient-portal user to plant markup that later runs in a staff member's browser session. The portal appointment form writes the form_comments value verbatim into pc_hometext, and the fee sheet appends that field to the generated HTML without the text() escaping that the adjacent reason field already uses. An attacker must hold a portal login (CVSS PR:L) and a billing or clinical staff member must open the printed fee sheet for that patient's encounter (UI:P) before the payload fires, which keeps this at moderate severity rather than an emergency; the advisory's proof of concept is argued from source review rather than demonstrated on a live instance, and no public working exploit code or active exploitation is reported.

RemediationAI

Upgrade to OpenEMR 8.5.0, which contains the vendor fix; per the advisory the correction escapes the appointment comment at the sink, changing the raw append to text($appointment['pc_hometext'] ?? ''), bringing the fee sheet in line with the text()-escaped reason field and the attr()/text() handling used by calendar and portal renders of the same column. If upgrading cannot be done promptly, the practical compensating control is to narrow the write path: disable the onsite patient portal or remove patients' ability to add and edit appointments in portal/add_edit_event_user.php, which eliminates the attacker-controlled source but severs portal self-service booking for patients. A second option is to restrict access to interface/patient_file/printed_fee_sheet.php to trusted staff roles until the patch is in place, at the cost of interrupting routine billing printouts. Note that sanitizing on input is not the vendor's chosen layer and would need to be reimplemented across all five insert/update branches, so output escaping or the upgrade is preferred. Patch status: vendor-released patch, version 8.5.0.

Affected VersionsENISA

OpenEMR 0 <8.5.0

Affected Packages

euvd openemr fix: 8.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenEMR is a PHP-based electronic health record and practice-management platform. This is CWE-79 (improper neutralization of input during web page generation) in its stored form: the portal write path in portal/add_edit_event_user.php takes $_POST['form_comments'] and binds it as a query parameter into pc_hometext of openemr_postcalendar_events on every insert and update branch, so the value is stored verbatim with no strip_tags or HTML encoding (the binding prevents SQL injection but not markup injection). The sink is the print view, where interface/patient_file/printed_fee_sheet.php accumulates output in a $html string, escapes the encounter reason via text() at line 467, then five lines later concatenates $appointment['pc_hometext'] raw, and finally emits the buffer with a bare echo at line 621 with no ACL gate on the page. The inconsistency is instructive: other appointment fields in the same file (date and time) pass through text(), and the portal's own rendering of the comment uses attr(), so the fee-sheet print path is the sole unescaped context. Because the script executes in the OpenEMR origin under the staff user's session, it crosses a privilege boundary from the lowest-trust account (a portal patient) to clinical or billing staff, which is why the scope is changed (S:C) - though the per-field data reach is limited (C:L/I:L) and availability is unaffected (A:N). All versions before 8.5.0 are affected; the vulnerable pattern is confirmed present at HEAD commit 71d9e43.

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

PR:L for the required portal patient account, UI:R because staff must open the fee sheet, S:C since a portal-tier account's input executes in the staff origin, C:L/I:L for script reach in that session.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
most popular open-source EMR, but healthcare-specific deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy