CVE-2026-126450

OpenEMR before 8.5.0 Stored XSS via Patient External ID in Prescriptions

Published Nov 13, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A stored cross‑site scripting flaw exists in OpenEMR versions prior to 8.5.0. The flaw allows an authenticated user to insert arbitrary JavaScript into the patient External ID field. When another user accesses the patient’s prescriptions through the View Printable Version (HTML) action, the stored script executes in that user’s browser, potentially enabling credential theft, phishing, or other client‑side attacks. The vulnerability is a classic Cross‑Site Scripting flaw identified as CWE‑80, with a CVSS base score of 5.3 indicating moderate severity.

Affected Systems

The issue affects all installations of OpenEMR released before 8.5.0; the vendor has provided a single advisory for the entire product line. Specific sub‑versions are not enumerated, so any deployment running a pre‑8.5.0 build is potentially vulnerable.

Risk and Exploitability

The CVSS score of 5.3 reflects the medium risk of client‑side exploitation. The EPSS score is below 1 %, indicating that, at the time of this analysis, it is unlikely to be actively exploited in the wild, and the vulnerability is not listed in CISA’s KEV catalogue. However, because exploitation requires only an authenticated session, internal users or attackers who gain limited access can inject scripts. A potential attack chain involves an attacker logging in, inserting a payload into a patient’s External ID, and then waiting for other users to view the printable prescription, at which point the arbitrarily executed script runs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or later to eliminate the vulnerability.
  • If an upgrade cannot be performed immediately, configure the application to validate or strip script content from the External ID field before storing to the database.
  • Enable evidence‑based defenses such as a Content‑Security‑Policy or X‑XSS‑Protection headers to help mitigate the impact of any retained payloads.

Generated by OpenCVE AI on November 14, 2026 at 15:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description 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.
Title OpenEMR before 8.5.0 Stored XSS via Patient External ID in Prescriptions
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-80
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 2:17 PM
Reserved
Nov 10, 2026, 9:39 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 8:54 PM