CVE-2026-126462

OpenEMR before 8.5.0 Stored XSS via Eye Exam Next Visit Orders

Published Nov 13, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows authenticated users with Eye Exam edit permission to inject scripts via the Next Visit Orders PLAN[] field. Attackers can store a payload closing the textarea in view.php, executing JavaScript when another user opens the Eye Exam editor to steal session identifiers or clinical data.

Analysis

AI-generated

Technical impact

OpenEMR versions before 8.5.0 contain a stored cross‑site scripting flaw that permits users with Eye Exam edit rights to inject arbitrary JavaScript through the Next Visit Orders PLAN[] field. The injected payload closes the textarea in view.php and runs when another user opens the Eye Exam editor, enabling an attacker to read session cookies or capture clinical information. The weakness is a classic input validation issue (CWE‑79).

Affected Systems

The vulnerability affects the OpenEMR openemr product for all releases earlier than 8.5.0. Any instance of OpenEMR running one of these versions is potentially marked as vulnerable; no sub‑version detail is provided beyond the major‑minor boundary.

Risk and Exploitability

The CVSS score of 5.1 reflects a moderate risk, and the EPSS score of less than 1% indicates a very low current exploitation likelihood. The flaw is not listed in the CISA KEV catalog. Attackers must be authenticated and possess Eye Exam edit permissions, meaning the threat is limited to individuals who already have legitimate access. Once exploited, the attacker can steal session identifiers or other sensitive clinical data presented in the editor interface. The attack vector is likely internal, via a logged‑in user’s interaction with the editor.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or newer to remove the vulnerability.
  • Limit Eye Exam edit permissions to trusted users only, reviewing role assignments and removing unnecessary privileges.
  • Implement a Content Security Policy header (CSP) to reduce the impact of any remaining XSS payloads until the update is deployed.

Generated by OpenCVE AI on November 14, 2026 at 16:03 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': 'none', '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 with Eye Exam edit permission to inject scripts via the Next Visit Orders PLAN[] field. Attackers can store a payload closing the textarea in view.php, executing JavaScript when another user opens the Eye Exam editor to steal session identifiers or clinical data.
Title OpenEMR before 8.5.0 Stored XSS via Eye Exam Next Visit Orders
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-79
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

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