Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege user
-
ExploitInject script into patient External ID field
-
ExecutionVictim opens prescription View Printable Version (HTML)
-
ImpactPayload executes in victim's session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access 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 the ability to create or edit patient records (Patient / New/Search) in order to store the payload in the External ID field - consistent with PR:L. Execution is not automatic: a second, different user must open the affected patient's prescription via Prescriptions → View Printable Version (HTML) for the script to run, so impact is limited to users who view that patient's prescriptions. Affected deployments are OpenEMR versions below 8.5.0 (GHSA confirms 6.1.0-8.4.0); the only complete fix per the vendor is updating to 8.5.0. Limiting factors: valid authentication required, dependency on victim navigation to the printable prescription view, and scope confined to that patient's prescription viewers. |
| Impact | This is a stored XSS (CWE-80) carrying a moderate CVSS 4.0 base score of 5.3, and the signals are internally consistent rather than conflicting. The vector (AV:N/AC:L/AT:N/PR:L/UI:N) indicates network reach with low complexity but requires privileges (PR:L), so this is an authenticated-user attack, not a pre-auth remote compromise - a meaningful limiter. No EPSS score and no KEV listing were provided in the input, so there is no evidence of active exploitation or high predicted exploitation probability; the GHSA advisory does, however, document concrete step-by-step reproduction. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with a medium-severity, authenticated, patch-available issue. Net: this is a legitimate but second-tier priority - an insider or compromised-account threat against a healthcare records system (PHI-sensitive context) rather than a mass-exploitable internet-facing flaw. Note one genuine evidence gap: the provided CVSS 4.0 vector marks UI:N, yet the description states the payload only fires when another user opens 'View Printable Version (HTML)', which is a victim-initiated action - the UI metric likely understates the required interaction; verify with the vendor/CNA. |
| Exploit ScenarioDerived | An authenticated low-privilege OpenEMR user (e.g., a front-desk or registration account) creates or edits a patient and plants a script payload in the External ID field. Later, a clinician or other staff member opens that patient's prescription through View Printable Version (HTML), and the stored script executes in their authenticated browser session, enabling session-context actions or data theft. The GHSA advisory includes documented reproduction steps, so a working technique is publicly described. |
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 allows authenticated users who can create or edit patient records to inject script into the patient External ID field, with execution occurring when another user opens that patient's prescriptions through View Printable Version (HTML). The GitHub security advisory documents a public proof-of-concept procedure and reports successful testing on versions 6.1.0 through 8.4.0; upgrading to 8.5.0 is the vendor's complete fix. The CVSS 4.0 base score is 5.3, the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, and the supplied data contains no CISA KEV or EPSS information.
RemediationAI
Vendor-released patch: OpenEMR 8.5.0. Upgrade affected installations to 8.5.0, which the GitHub advisory identifies as the fixed release and which the supplied assessment describes as the only complete fix per the vendor. The vendor advisory at https://github.com/openemr/openemr/security/advisories/GHSA-w2f7-289j-92pp and the VulnCheck advisory at https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-patient-external-id-in-prescriptions should be consulted for update details; no specific workaround is described in the supplied 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
The issue is CWE-80, improper neutralization of script-related HTML tags in a web page, which is the basic cross-site scripting class. In OpenEMR, the patient External ID field accepts attacker-controlled content that is later rendered without adequate encoding in the printable HTML prescription view; the payload is stored in the patient record and executes in the browser session of a different user who views that patient's prescriptions. The CPE entry cpe:2.3:a:openemr:openemr:*:*:*:*:*:*:*:* identifies OpenEMR as the affected product, and the EUVD and GHSA data constrain affected releases to those below 8.5.0, with the advisory specifically confirming 6.1.0 through 8.4.0. Exploitation requires an authenticated account able to create or edit patient records, consistent with PR:L, and execution requires a victim to navigate to the printable prescription view, consistent with UI:R and the assessed scope change S:C. The trigger beyond the documented patient-record and prescription-view steps is not further described in the available sources.
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:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Authenticated low-priv attacker stores the payload (PR:L), a different victim must open the printable view (UI:R), and execution in that victim's session crosses a security scope (S:C) with limited C/I and no availability 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 that allows authenticated users to inject scripts by placing payloads in the patient External ID field. The payload executes when other users open the patient's prescriptions via View Printable Version (HTML), running script in their browser sessions.
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-124980
GHSA-3x4r-f8r5-3j5v
NVD
CVE.org
EPSS
VulDB
Exploit-DB