Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as clinician with coding access
-
DeliverySave crafted billing code via diagnosis.php
-
ExploitBack Office user opens EOB invoice and types payment
-
ExecutionDecoded quote escapes onkeyup JS string, script runs
-
ImpactRead/exfiltrate patient and financial data as EOB user
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 | Two distinct authenticated roles are required: (1) the attacker must hold a Clinician account with encounters/coding write access to save a crafted billing code through interface/patient_file/encounter/diagnosis.php, and (2) a separate Back Office user with acct/eob write access must subsequently open the manual EOB invoice at interface/billing/sl_eob_invoice.php for that encounter and type a character into the Pay field of the malicious charge (UI:A) to fire the onkeyup handler. Limiting factors: no unauthenticated or default-config path, the payload only triggers on the privileged victim's keystroke in the specific EOB payment form, and the billing-code column's 20-character limit bounds payload size (the PoC uses 14 characters). |
| Impact | This is a moderate-severity stored XSS (CVSS 4.0 base 6.9, VC:H/VI:L) whose real-world risk is constrained by a two-actor, authenticated, interaction-dependent exploitation path rather than the raw impact score. The CVSS vector is PR:L and UI:A (active user interaction), so exploitation requires an attacker who already holds a legitimate clinician account with encounters/coding write access AND a separate privileged Back Office (acct/eob) user who must later open the manual EOB invoice and type into the Pay field - this is not drive-by or unauthenticated. No CISA KEV listing and no EPSS score are present in the input, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-this-cycle rather than drop-everything priority. The vendor GHSA advisory contains a detailed, step-by-step proof of concept, so a working exploit path is publicly documented even though the input does not mark PoC as independently confirmed weaponized code. Signals are internally consistent: a credentialed insider-to-insider privilege-boundary crossing (clinical coding → billing) with high confidentiality exposure of patient and financial data, but gated behind authentication and victim interaction - genuine priority for healthcare operators running OpenEMR, but lower urgency than a network-unauthenticated flaw. |
| Exploit ScenarioDerived | A clinician with encounter-coding access saves a billing code such as x',alert(1),'y via diagnosis.php, which OpenEMR stores without character validation. When a Back Office (EOB) user later opens the manual EOB invoice for that encounter and types a payment, the code is decoded out of the HTML-escaped inline onkeyup handler and executes JavaScript in the EOB user's authenticated session, exposing patient and financial data. A detailed proof of concept with the exact HTTP request and reproduction steps is published in the vendor's 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 before 8.5.0 lets a user holding the Clinician role's encounters/coding permission persist a malicious billing code that later executes JavaScript in a Back Office (EOB) user's authenticated session. The payload is saved through interface/patient_file/encounter/diagnosis.php and fires only when the billing user opens the manual EOB invoice at interface/billing/sl_eob_invoice.php and types a character into the Pay field of the crafted charge, so exploitation requires two distinct authenticated accounts and the victim's keystroke (CVSS 4.0 base 6.9, PR:L/UI:A, VC:H/VI:L). The vendor advisory includes a public proof-of-concept walkthrough (crafted 14-character billing code plus the diagnosis.php request); no CISA KEV entry or confirmed in-the-wild exploitation was identified at time of analysis, and the trigger is bounded by the 20-character billing-code column.
RemediationAI
Upgrade to OpenEMR 8.5.0, the version the vendor advisory GHSA-v7qh-q4xq-28v3 names as fixed for all releases below it; the patch is available from the vendor, so no source-level workaround is required. Where the upgrade cannot be scheduled immediately, reduce exposure by narrowing who can reach the two roles the exploit chain needs: revoke or restrict encounters/coding write access for clinician accounts that do not need to author billing codes, and limit acct/eob write access to the manual EOB payment screen to the staff who genuinely process payments - this breaks the two-actor path but does not remove the underlying sink and degrades clinical coding and billing workflows. Because the payload only fires on the victim's keystroke in the Pay field of the malicious charge, reviewing recent entries in the billing table for codes containing quotes or JavaScript syntax before EOB staff open affected invoices is a useful interim check, though it is detection rather than a durable fix. Treat the upgrade as this month's priority per the vuln.today decision label rather than an emergency action.
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's billing pipeline treats the billing code as opaque data: interface/patient_file/encounter/diagnosis.php reads 'code' and 'fee' from the request and hands them to BillingUtilities::addBilling(), which binds parameters correctly and therefore blocks SQL injection but performs no character allowlist validation. InvoiceSummary then retrieves nonzero charges and uses each code string as an array key, and interface/billing/sl_eob_invoice.php interpolates that key into three single-quoted JavaScript string literals inside an inline onkeyup handler, wrapped in the framework's attr() helper. attr() is correct for the HTML attribute context - it emits ' for quotes - but it is not JavaScript-string encoding, and the browser decodes those entities back to single quotes before compiling the handler. A code such as x',alert(1),'y therefore terminates the intended string and the comma operator evaluates the injected expression while the computed property is constructed, leaving the handler syntactically valid so updateFields() still runs normally. This is classic CWE-79 context confusion: output encoding applied for one sink (attribute) does not protect a nested execution context (inline script), and the trusted clinical-coding to billing boundary is what makes the stored payload reach a more privileged victim.
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:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Authenticated low-priv clinician stores payload (PR:L) that executes in a different privileged user's browser on their interaction (UI:R, S:C), exposing patient/financial data (C:H) with limited action capability (I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability in interface/billing/sl_eob_invoice.php, which escapes billing codes for HTML attributes but not for JavaScript strings in an inline onkeyup handler. Clinicians with encounter coding access can save crafted billing codes through diagnosis.php that execute script when a Back Office user enters a payment, exposing patient and financial data or performing actions as that user.
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-125025
GHSA-v4cf-c285-xqwr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB