---
id: "CVE-2026-126476"
page: "https://infrastack.ai/live/CVE-2026-126476"
kind: "vulnerability"
aliases: ["CVE-2026-126476"]
title: "OpenEMR: reflected XSS in auto-suggest lets attackers run scripts"
severity: "medium"
cvss: 6.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "self-hosted"]
not_affected_if: ["no-authenticated-users", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:57+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-126476", "first_seen_at": "2026-11-13T10:47:25+00:00"}]
exploit_sources: []
---

# OpenEMR: reflected XSS in auto-suggest lets attackers run scripts

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

OpenEMR before 8.5.0 echoes the searchMode POST parameter unencoded into an onClick attribute in the Application module's auto-suggest endpoint. An attacker who tricks a logged-in user into submitting a crafted search can run JavaScript in that user's session to steal session cookies or view patient data.

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

## How to check

- Check the OpenEMR version in use; versions before `8.5.0` are listed as affected.
- Review web server logs for POST requests to `application/index/search` containing single-quote characters in `searchMode`.

## Fix

- OpenEMR: move to `8.5.0` or later.

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-8mwp-vq82-x5mr
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-reflected-xss-via-auto-suggest-searchmode-parameter

## From the sources

OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability in the Application module's auto-suggest endpoint, which echoes the searchMode POST parameter unencoded into a single-quoted onClick attribute. Attackers can induce an authenticated user to submit a single-quote payload to application/index/search, executing arbitrary JavaScript in that user's session to steal session cookies or disclose patient data.

---

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