CVE-2026-91130: Home Assistant Statistics Graph Card XSS via entity names

CVE-2026-91130 · Severity: critical · CVSS 4 · Published 2026-09-22

Home Assistant is an open-source home automation platform that allows users to manage smart devices and automation through a web dashboard. A vulnerability in the Statistics Graph card component allows attackers to inject malicious code that executes in the browser when users hover over chart data points. An attacker with the ability to set entity names (either through direct access or via a compromised integration) can execute arbitrary JavaScript in the context of other users' Home Assistant instances, potentially stealing credentials, session tokens, or sensitive smart home configuration data.

Technologies: Home Assistant Home-Assistant, homeassistant (PyPI). Vendors: Home Assistant, PyPI.

Quick answers

Is CVE-2026-91130 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-91130 being exploited in the wild.
How severe is CVE-2026-91130?
Critical severity, with a CVSS score of 4, published 22 September 2026.
Which products and versions are affected?
Home Assistant Home-Assistant versions prior to patch (CVE-2026-91130); homeassistant (PyPI) < 2026.7.0, ECOSYSTEM:introduced=0,fixed=2026.7.0.
Is there a fix for CVE-2026-91130?
Yes. homeassistant (PyPI): upgrade to 2026.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-91130 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2026-91130?
Check whether you run Home Assistant Home-Assistant or homeassistant (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • homeassistant (PyPI): upgrade to 2026.7.0 or later
    pip install "homeassistant>=2026.7.0"

Technical details

The vulnerability is a Cross-Site Scripting (XSS) flaw in the Statistics Graph card component's tooltip rendering. The vulnerable code in `statistics-chart.ts` directly interpolates the `param.seriesName` field into an HTML string without sanitization: `return \`${time}${param.marker} ${param.seriesName}: ${value}\`;`. The entity name flows from user-controlled or integration-provided entity metadata through `getStatisticLabel()` and `computeStateName()` without HTML encoding. An authenticated attacker can create a malicious entity name containing HTML/JavaScript payload (e.g., `<img src=x onerror=alert(1) />`), and when any user views that entity in a Statistics Graph card and hovers over a data point, the payload executes. The vulnerability particularly impacts users with Statistics Graph cards showing entities from third-party integrations (e.g., energy providers like Tibber), as the malicious name could be injected at the source without requiring account access to the target instance. A patch applying the `filterXSS()` function (similar to the fix for CVE-2025-62172 in the Energy dashboard) is required.

Affected products

  • Home Assistant Home Assistant versions prior to patch (CVE-2026-91130)

Identifiers

  • CVE-2026-91130
  • GHSA-wx4m-69m9-gx3m
  • PYSEC-2026-4052

Timeline

  • 2026-09-22: disclosed: GHSA-wx4m-69m9-gx3m advisory published
  • 2025: other: Related vulnerability CVE-2025-62172 patched in Energy dashboard but Statistics Graph card left unpatched

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.