---
id: "CVE-2026-126475"
page: "https://infrastack.ai/live/CVE-2026-126475"
kind: "vulnerability"
aliases: ["CVE-2026-126475"]
title: "OpenEMR: reflected cross-site scripting in search lets logged-in users run JavaScript"
severity: "medium"
cvss: 6.1
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "runtime", "self-hosted"]
not_affected_if: ["managed-hosting", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:56+00:00"
first_seen_at: "2026-11-13T10:47:25+00:00"
updated_at: "2026-11-13T10:56:27+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126475", "first_seen_at": "2026-11-13T10:47:25+00:00"}]
exploit_sources: []
---

# OpenEMR: reflected cross-site scripting in search lets logged-in users run JavaScript

Link for people: https://infrastack.ai/live/CVE-2026-126475 (this .md is for agents)

OpenEMR before 8.5.0 reflects the searchEleNo POST parameter into an unencoded HTML attribute in auto-suggest.phtml, so a crafted payload runs JavaScript in the browser of a logged-in user. An attacker can use this to steal non-HttpOnly session cookies and view patient data.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed OpenEMR version in the application's version setting or `composer.json` and compare it with `8.5.0`.
- Look for the `searchEleNo` parameter handling in `application/index/search` and `auto-suggest.phtml` in the deployed code.

## Fix

- OpenEMR: upgrade to `8.5.0` or later.

## Timeline

- 2026-11-13T10:47:25+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126475

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-pv5m-vjm7-x355
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-reflected-xss-via-searcheleno-in-auto-suggest-endpoint

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
