Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as clinical/provider user
-
ExploitStore double-quote breakout payload in transfer_to/code field
-
ExecutionVictim clinician opens form, onfocus fires automatically
-
ImpactSteal 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-117770
NVD
CVE.org
EPSS
GitHub
Exploit-DB