Skip to main content

OpenEMR CVE-2026-103935

| EUVDEUVD-2026-117770 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-11-05 GitHub_M
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as clinical/provider user
  2. Exploit
    Store double-quote breakout payload in transfer_to/code field
  3. Execution
    Victim clinician opens form, onfocus fires automatically
  4. Impact
    Steal session, exfiltrate PHI, act on patient record

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 account with a clinical/provider role able to add encounter forms, plus an existing patient with an active encounter (per the advisory PoC prerequisites). The attacker stores a double-quote-containing value in the transfer_to field (Transfer Summary form) or the code/codetext fields (Functional & Cognitive Status form); because these are rendered with text() (ENT_NOQUOTES) inside double-quoted value="" attributes, the quote escapes the attribute and injects event-handler markup. Exploitation completes only when a second clinician opens the affected form's view - the injected autofocus/onfocus then fires on page load without any click. Limiting factors: a valid clinical account and CSRF token are needed to store the payload (not anonymous), exploitation is confined to affected versions prior to 8.3.0, and payload execution depends on another clinician actually viewing the poisoned record.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, base 8.1) describes a network-reachable, low-complexity stored XSS requiring low privileges and, per the vector, no user interaction. The PR:L metric confirms this is an authenticated flaw - an attacker needs a clinical/provider account that can add encounter forms, so this is not an anonymous internet-facing bug but an insider-or-compromised-credential scenario. There is tension between the vector's UI:N and the description/advisory, which state the payload fires 'when another clinician opens the form'; the autofocus/onfocus technique means the victim performs no click, but a second clinician must still navigate to the affected record, which is why this analysis treats it as passive victim interaction rather than fully interaction-free - verify UI scoring against the stored-XSS trigger. No EPSS score and no KEV status were provided in the input, so there is no quantitative exploitation-probability or confirmed-active-exploitation signal to weigh; absence of these is not evidence of low risk, only missing data. The vuln.today decision label is this_week (not act_now/emergency), consistent with a high-impact but authentication-gated issue. Net: a genuine priority for OpenEMR operators because the C:H/I:H impact maps directly to PHI exposure, session hijack, and patient-record manipulation in a healthcare context, but realistic exploitation is gated behind a trusted clinical account and a second clinician viewing the record, making it more targeted/insider than mass-exploitable.

Exploit ScenarioDerived

An authenticated clinical user adds a Transfer Summary or Functional & Cognitive Status form to an active patient encounter and stores a value such as " autofocus onfocus="alert(document.cookie) in the transfer_to, code, or codetext field, which breaks out of the double-quoted value attribute. When another clinician later opens that patient's form, the injected event handler executes automatically in their session, enabling cookie/session theft, PHI exfiltration, or actions on the patient record as the victim. A detailed public PoC (HTTP request, rendered markup, and screenshots) is published in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 05, 2026

Stored cross-site scripting in OpenEMR before 8.3.0 lets a clinical user with an authenticated account persist a double-quote-bearing payload into the Transfer Summary (transfer_to) and Functional & Cognitive Status (code/codetext) forms, which are later rendered by text() - an ENT_NOQUOTES escaper - inside double-quoted HTML value attributes. When a second clinician opens the affected encounter form, the unescaped quote breaks out of the attribute and injected event-handler markup executes in that clinician's session, exposing session data and protected health information or permitting patient-record actions as the victim. The vendor fixed the sink in 8.3.0 (PR #13192, commit d301444f); the advisory publishes a full reproduction walkthrough, but there is no CISA KEV listing and no confirmed in-the-wild exploitation, and OpenEMR's priority label places remediation in the current week's work rather than an emergency.

RemediationAI

Upgrade OpenEMR to 8.3.0 or later, which is the version that ships the fix for this advisory; the correction is the upstream commit d301444f6c4d9c4fa732ce57f3989214081c6108 / PR https://github.com/openemr/openemr/pull/13192 that replaces text() with attr() at the affected attribute sinks, with release notes at https://github.com/openemr/openemr/releases/tag/v8_3_0 and details at https://github.com/openemr/openemr/security/advisories/GHSA-pm2v-5p99-37p2. If upgrading immediately is not possible, the practical compensating controls are to restrict creation of Transfer Summary and Functional & Cognitive Status encounter forms to trusted staff roles (reduces, but does not eliminate, the low-privileged author who can store the payload) and to limit which clinical accounts can open those forms until the upgrade lands (blocks the victim-side page load, at the cost of disrupting clinical workflow). Because the payload is persisted in existing records, patching the code does not clean previously stored malicious values, so records containing a double quote in transfer_to, code or codetext should be reviewed and re-saved after the upgrade. Note that the vendor's complete fix is the code update; the advisory does not describe any configuration setting that turns the vulnerable rendering off.

Affected VersionsENISA

OpenEMR < 8.3.0

Affected Packages

euvd openemr fix: 8.3.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 electronic health records and practice-management application; the flaw is CWE-79 (improper neutralization of input during web page generation). library/htmlspecialchars.inc.php defines two escapers: text() uses htmlspecialchars() with ENT_NOQUOTES, correct only for HTML text nodes, while attr() uses ENT_QUOTES and is the correct helper for attribute context. interface/forms/transfer_summary/new.php (line 92) and interface/forms/functional_cognitive_status/new.php (lines 148, 150, 180, 182) call text() inside double-quoted value="" attributes. Data flow is $_POST["transfer_to"] / $_POST["code"] / $_POST["codetext"] → save.php parameterized INSERT (SQL-safe, but no HTML encoding) → raw storage in the form table → formFetch() returning the raw value → text() leaving the double quote intact → rendered attribute. A value such as " autofocus onfocus="alert(document.cookie) therefore terminates the value attribute and adds an event handler that the advisory says fires automatically on page load via autofocus. The assessed vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N: network reachable, low complexity, requires a low-privileged authenticated clinical account, and requires a victim clinician to open the poisoned form (the trigger is the victim's page load of view.php, not an independent race or memory condition). The published fix swaps text() for attr() at the affected sinks (and in commented-out eye_mag markup) and is shipped in release v8_3_0; the diff also shows a PHPStan baseline update, indicating a broader sweep of text()-in-attribute misuse rather than a single-line patch.

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 (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.3 HIGH

Authenticated clinical account gives PR:L; a separate clinician must open the record so UI:R; stored XSS yields session/PHI exposure and record actions (C:H/I:H) with no availability impact.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 05, 2026 - 21:18 EUVD
CVE Published
Nov 05, 2026 - 19:59 cve.org
HIGH 8.1

DescriptionCVE.org

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php render stored transfer_to, code, and codetext values with text(), which uses ENT_NOQUOTES, inside double-quoted HTML value attributes. An authenticated clinical user can store a value containing a double quote that escapes the attribute and injects event-handler markup when another clinician opens the form. Successful exploitation can expose session data and protected health information or permit patient-record actions in the victim's session. This issue is fixed in version 8.3.0.

Technical POC Analysis

CWE-79 (Improper Neutralization of Input During Web Page Generation).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A stored cross-site scripting vulnerability in OpenEMR (before 8.3.0) allows authenticated clinical users to inject malicious code into patient encounter forms, which then executes in the browsers of other clinicians viewing those forms. This could lead to unauthorized access to sensitive patient data and actions performed under the victim's credentials, posing a risk to protected health information and clinical workflows. Leadership should prioritize remediation to maintain trust and compliance.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting access to vulnerable forms, implementing WAF rules to block malicious payloads, and enforcing input validation.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Medium
most popular open-source EHR, but confined to healthcare providers
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
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