Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as admin/superbill billing-code editor
-
DeliveryStore XSS payload in shared SNOMED code description
-
ExploitClinician selects malicious code in encounter form
-
ExecutionDescription assigned to innerHTML executes script
-
ImpactRead same-origin patient data and act as clinician
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 concrete preconditions must both hold: (1) the attacker must possess an account with admin/superbill WRITE permission (the Billing Codes maintenance role) to store HTML into a shared SNOMED code description via /interface/patient_file/encounter/superbill_custom_full.php; and (2) a separate clinician must open a patient encounter and specifically select that malicious code inside the Functional and Cognitive Status form or a layout-based fee-sheet/encounter form, where the description is written to innerHTML. Limiting factors that reduce realistic risk: exploitation requires a pre-existing privileged (admin/superbill) attacker account, requires targeted active interaction by a victim clinician (it does not fire passively), affects only OpenEMR versions before 8.5.0, and is fully remediated by upgrading to 8.5.0. Payloads reach execution only through these specific SNOMED-code-selection code paths, not arbitrary pages. |
| Impact | This is a genuine but second-tier priority - a stored XSS (CWE-79) in OpenEMR, not a critical remote-code-execution flaw. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:A, score 4.6 Medium) and the vendor advisory agree closely: exploitation needs a network path but is gated by two strong preconditions - PR:H (the attacker must already hold admin/superbill write permission to maintain billing codes) and UI:A (a clinician must actively select the specific malicious SNOMED code inside the Functional and Cognitive Status form or a layout-based fee-sheet form). The signals are mutually consistent rather than conflicting: a high-privilege, user-interaction-dependent XSS legitimately lands in the Medium band. No EPSS score and no KEV status were provided, so there is no evidence of active or widespread exploitation; absence of these is not itself a defect. The vuln.today decision label is 'this_month' (not act_now/emergency), matching a patch-on-normal-cycle urgency. The real value here is the trust-boundary crossing documented by the vendor: the admin/superbill role is scoped to code-catalog maintenance and is NOT supposed to grant access to another user's browser session, yet the innerHTML sinks let a scoped coding administrator execute script in a clinician's authenticated session to read same-origin patient data and act with clinical privileges. So the risk is insider/privilege-escalation-flavored and targeted, not mass-exploitable; prioritize it where OpenEMR separates billing-code and clinician duties, but it is not a drop-everything emergency. |
| Exploit ScenarioDerived | A user holding only the scoped admin/superbill (Billing Codes) permission stores an HTML payload such as <img src=x onerror=alert(1)> in a shared SNOMED code description via superbill_custom_full.php, which applies only SQL escaping and leaves HTML event handlers intact. Later, when an unsuspecting clinician opens a patient encounter and selects that code in the Functional and Cognitive Status form (or a layout-based fee-sheet form), the description is assigned to innerHTML and the script runs in the clinician's authenticated session. A detailed proof-of-concept with exact HTTP requests is published in the vendor GHSA advisory; it is not independently verified here as standalone weaponized exploit code. Because PR:H and targeted clinician interaction (UI:A) are both required, the attack is realistic only against an operator who already has billing-code write access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Stored cross-site scripting (CWE-79) in OpenEMR before 8.5.0 lets an account holding admin/superbill write permission plant HTML inside a shared SNOMED code description via superbill_custom_full.php, which then runs as JavaScript in a clinician's authenticated session when that clinician manually selects the poisoned code in the Functional and Cognitive Status form or a layout-based fee-sheet form, allowing same-origin reads of patient data and actions under the clinician's privileges. The vendor advisory documents a step-by-step proof-of-concept reproduction; there is no indication of active exploitation and the issue is not in CISA KEV. Exploitation needs both a pre-existing privileged billing-code account and targeted interaction by a victim clinician, so despite the session-crossing impact this is a genuine but second-tier priority that is fully resolved by upgrading to 8.5.0.
RemediationAI
Upgrade OpenEMR to 8.5.0, the vendor-released fixed version, which is the complete remediation per the GHSA-qv97-cvw6-8j53 advisory (https://github.com/openemr/openemr/security/advisories/GHSA-qv97-cvw6-8j53). Because the flaw's first precondition is possession of admin/superbill write permission, reducing exposure before upgrading means restricting that ACL to a small set of trusted billing administrators and auditing the codes table for code_text entries containing HTML markup such as img/onerror payloads left behind by the editor; both measures lower the attack surface but are only compensating steps, since the root cause is that SQL escaping in the editor never strips HTML and the clinician-side renderers still assign descriptions to innerHTML, so neither substitutes for the 8.5.0 upgrade. No vendor-documented feature toggle for the affected code-selection paths is provided in the available sources.
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 application storing billing/coding data in a MySQL-backed codes table whose code_text column holds SNOMED description text. The vulnerability is CWE-79 stored XSS arising from an encoding-boundary mismatch: the code editor in interface/patient_file/encounter/superbill_custom_full.php does enforce the admin/superbill ACL write check and CSRF validation, but it applies only SQL escaping (ffescape) to code_text, which neutralizes SQL metacharacters and leaves HTML event handlers intact. The code finder then reads that stored description and uses attr_js() to embed it in an onclick handler, preserving the raw HTML, and the Functional and Cognitive Status form's set_related() function writes the returned codedesc value directly to innerHTML, so markup such as an img tag with a failing src and onerror handler becomes active script. A second, independent sink exists in library/ajax/code_attributes_ajax.php, which returns the same description as a correctly quoted JavaScript string; layout-based encounter forms then concatenate that value into table markup (fs_append_service()) that is assigned to innerHTML. Because JavaScript string escaping does not sanitize HTML, both paths convert catalog text into executable content. The trigger is not passive: the payload only reaches these specific SNOMED-code-selection code paths after a clinician actively searches for and picks the malicious code.
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:H/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Web-reachable (AV:N/AC:L) but needs admin/superbill write (PR:H) and a clinician to select the code (UI:R); injected script runs in a different user's session so S:C, with limited read/act impact (C:L/I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows users with admin/superbill write permission to inject HTML into SNOMED code descriptions via superbill_custom_full.php. When a clinician selects the malicious code, the Functional and Cognitive Status form or fee-sheet forms assign it to innerHTML, executing JavaScript in the clinician's session to read patient data and perform actions.
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-125019
GHSA-3m2q-vcc8-c9fr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB