CVE-2026-126475

OpenEMR before 8.5.0 Reflected XSS via searchEleNo in Auto-Suggest Endpoint

Published Nov 13, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability that allows authenticated attackers to execute JavaScript by injecting payloads into the searchEleNo POST parameter of the application/index/search endpoint. Attackers can break out of unencoded HTML attributes in auto-suggest.phtml to inject event handlers that fire on DOM insertion, stealing non-HttpOnly session cookies and patient data.

Analysis

AI-generated

Technical impact

The vulnerability is a reflected cross‑site scripting flaw in OpenEMR versions before 8.5.0. When an authenticated user submits a request that contains a malicious payload in the searchEleNo POST parameter to the /application/index/search endpoint, the unencoded value is reflected back within the auto‑suggest.phtml template. This allows an attacker to inject event handlers that fire when the element is inserted into the DOM, enabling theft of non‑HttpOnly session cookies and exposure of sensitive patient information. The flaw is an instance of CWE‑79, reflecting the inability of the application to properly encode or sanitize user input before rendering it.

Affected Systems

Any deployment of OpenEMR prior to the 8.5.0 release is affected. The vendor‑product pairing is openemr:openemr, and no fine‑grained version list is provided beyond the “before 8.5.0” range. All installations using the standard auto‑suggest functionality are thus vulnerable.

Risk and Exploitability

The risk is moderate with a CVSS score of 5.1 and an EPSS probability of less than 1 %. The flaw is not listed in CISA’s KEV catalog. Because the attack requires that the attacker be authenticated, the path involves logging into the application and submitting a crafted searchEleNo payload. If these conditions are met, exploitation is straightforward, and the effects can compromise a user’s session and expose confidential data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or newer.
  • If an upgrade is not immediately possible, remove or disable the searchEleNo endpoint or block access to it until a fix is applied.
  • Modify the auto‑suggest.phtml template and the searchEleNo handling code to apply proper output encoding or input validation so that user‑supplied data cannot be injected as executable code.

Generated by OpenCVE AI on November 14, 2026 at 16:11 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 reflected cross-site scripting vulnerability that allows authenticated attackers to execute JavaScript by injecting payloads into the searchEleNo POST parameter of the application/index/search endpoint. Attackers can break out of unencoded HTML attributes in auto-suggest.phtml to inject event handlers that fire on DOM insertion, stealing non-HttpOnly session cookies and patient data.
Title OpenEMR before 8.5.0 Reflected XSS via searchEleNo in Auto-Suggest Endpoint
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': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/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:N/UI:A/VC:N/VI:N/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, 2:07 PM
Reserved
Nov 10, 2026, 9:42 PM
Status
Modified
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 2:17 PM