Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as clinician (encounters/coding)
-
DeliveryInject ≤25-char payload in Fee Sheet notecodes
-
ExploitPayload breaks out of single-quoted value attribute, stored verbatim
-
ExecutionAdministrator opens the visit's Fee Sheet, script executes
-
ImpactDrive authenticated actions in admin's session
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 | Exploitation requires an authenticated account with the encounters/coding permission (Clinician role or higher) able to edit a Fee Sheet - it is explicitly NOT available to the lowest roles. The payload must survive storage in the billing.notecodes varchar(25) column, so a working injection must be ≤25 characters (the demonstrated ' onclick=alert(1) x=' is 22). Execution is not immediate: a higher-privileged victim (e.g. an administrator) must subsequently open that specific visit's Fee Sheet in their browser (passive user interaction, UI:P). These factors - required clinician authentication, the short-length constraint, and the need for a privileged user to view the affected record - limit this to an insider/second-order privilege-escalation path rather than remote unauthenticated compromise of default configurations. |
| Impact | This is a medium-severity stored XSS (CVSS 4.0 base 5.1; CWE-79) whose real-world risk is moderate and bounded by its preconditions rather than its raw reach. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N) shows network vector and low complexity but requires PR:L - an authenticated clinician with encounters/coding rights - and passive user interaction (a higher-privileged user must later open the affected visit). It is therefore an authenticated privilege-escalation/session-hijack path (Clinician → administrator session), not an unauthenticated mass-exploitable flaw. The vuln.today priority is 'this_month', consistent with a patch-when-reasonable medium, not an emergency. No KEV listing was supplied, so exploitation status is: no confirmed active exploitation. No EPSS score was provided, so statistical exploitation probability cannot be compared here. A detailed, working reproducer (Dockerfile plus exploit.sh/exploit.py staging the payload as clinician 'carol' and confirming execution in 'admin's browser) is published in the GHSA advisory, so exploitability is practically demonstrated even though no standalone off-the-shelf exploit tool is cited. Net: a genuine but prerequisite-gated issue - real priority for healthcare operators running OpenEMR with multiple roles, but not a drop-everything internet-facing crisis. |
| Exploit ScenarioDerived | A malicious or compromised clinician edits a patient's Fee Sheet and types a short payload (≤25 characters, e.g. ' onclick=alert(1) x=') into the notecodes field, which breaks out of the single-quoted value attribute and is stored verbatim. When an administrator or other higher-privileged user later opens that visit's Fee Sheet, the injected JavaScript runs in their authenticated session, letting the attacker drive any action the victim can perform. A complete reproducer demonstrating exactly this is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Stored cross-site scripting in OpenEMR's Fee Sheet (interface/forms/fee_sheet/new.php) allows a user holding the encounters/coding permission - a Clinician or higher - to persist a short JavaScript payload in a billing line's notecodes field that executes in the browser of any higher-privileged user, including an administrator, who later opens that visit's Fee Sheet. The flaw is a context mismatch: the value is escaped with the text() helper (ENT_NOQUOTES) inside a single-quoted HTML attribute, so a quote character breaks out of value='...' and the demonstrated 22-character payload fits within the varchar(25) column. Exploitation is authenticated and second-order (CVSS 4.0 base 5.1, scope Changed), and while the upstream advisory ships a Docker-based proof-of-concept reproducer, there is no CISA KEV listing and no public exploit identified at time of analysis; the vendor has released OpenEMR 8.5.0 with a fix.
RemediationAI
Vendor-released patch: upgrade to OpenEMR 8.5.0, which is the fixed version listed in the affected-range data and the upstream advisory (https://github.com/openemr/openemr/security/advisories/GHSA-ff55-qvf9-2fgm). The upstream fix replaces the text() call on the notecodes value with attr() (htmlspecialchars with ENT_QUOTES) so the value is escaped for the attribute context it is rendered into; sites maintaining a local fork can apply that one-line change directly, and the report suggests also escaping the $justify echo with text() and auditing the tree for the recurring "value='" . text( pattern. As a compensating control where upgrading must wait, the exposure is bounded by the encounters/coding permission: remove that ACL from roles that do not need to edit Fee Sheets, at the cost of breaking their billing and coding workflow, and treat Fee Sheets opened by administrator accounts as untrusted until the patch is applied. Note that this only narrows who can plant a payload - it does not remove the escaping defect, so the upgrade remains the complete fix.
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 record and billing platform. In the Fee Sheet form, a billing line's notecodes value is echoed into an <input> element roughly as "value='" . text($li['notecodes']) . "'". OpenEMR's text() helper wraps htmlspecialchars() with ENT_NOQUOTES, so single quotes pass through unescaped; because the surrounding attribute is single-quoted, a value beginning with ' closes the attribute and lets an attacker append an event handler such as onclick=alert(1). The correct helper, attr() (ENT_QUOTES), is used on the same line for the line number, which is why the upstream report characterizes this as an oversight rather than a missing escape. The data round-trips through FeeSheet::save() with only trim(), so it is stored verbatim in billing.notecodes, a varchar(25) column that bounds the payload length. This is CWE-79 (improper neutralization of input during web page generation) with a cross-boundary consequence: the stored script runs in a victim session belonging to a different, more privileged user, which is why the assessed vector marks scope as Changed (S:C) with low confidentiality and integrity impact. The upstream report also notes a sibling unescaped echo of $justify at a nearby line that only renders once a line is billed.
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
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
Authenticated clinician stores the payload (PR:L), a privileged victim must open the page (UI:R), and execution in that higher-privileged session crosses a boundary (S:C), with limited C/I impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in the Fee Sheet notecodes field, which is escaped with the wrong context. Attackers with clinician access can inject a payload that breaks out of the single-quoted value attribute and executes in higher-privileged users' browsers.
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-124967
GHSA-p6mj-j29m-h68m
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB