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

Source: https://junglewise.ai/threats/cve-2026-91130-home-assistant-statistics-graph-card-xss-via-entity-names  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-22. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/technologies/home-assistant), [homeassistant (PyPI)](https://junglewise.ai/threats/technologies/homeassistant). Vendors: [Home Assistant](https://junglewise.ai/threats/vendors/home-assistant), [PyPI](https://junglewise.ai/threats/vendors/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

  ```sh
  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

## Related threats

- [Home Assistant Server-Side Request Forgery in mDNS IPP integration](https://junglewise.ai/threats/cve-2026-91129-home-assistant-server-side-request-forgery-in-mdns-ipp)
- [Home Assistant Core path traversal in backup upload](https://junglewise.ai/threats/cve-2026-64825-home-assistant-core-path-traversal-in-backup-upload)
- [PYSEC-2026-1452 - Home Assistant does not correctly validate SSL for outgoing requests in core and used libs](https://junglewise.ai/threats/cve-2025-25305-home-assistant-does-not-correctly-validate-ssl-for-outgoing)
- [PYSEC-2026-1451 - User accounts disclosed to unauthenticated actors on the LAN](https://junglewise.ai/threats/cve-2023-50715-user-accounts-disclosed-to-unauthenticated-actors-on-the-lan)
- [Home Assistant Konnected integration missing authentication in KonnectedView](https://junglewise.ai/threats/cve-2026-54317-home-assistant-konnected-integration-missing-authentication-in)
