Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. homeassistant
  4. ›
  5. CVE-2025-62172

CVE-2025-62172: Home Assistant has Stored XSS vulnerability in Energy dashboard from Energy Entity Name

October 14, 2025 (updated October 21, 2025)

An authenticated party can add a malicious name to the Energy entity, allowing for Cross-Site Scripting attacks against anyone who can see the Energy dashboard, when they hover over any information point (The blue bar in the picture below)

An alternative, and more impactful scenario, is that the entity gets a malicious name from the provider of the Entity (in this case the energy provider: Tibber), and gets exploited that way, through the default name.

References

  • github.com/advisories/GHSA-mq77-rv97-285m
  • github.com/home-assistant/core
  • github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m
  • github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts
  • github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts
  • github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-devices-graph-card.ts
  • github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-usage-graph-card.ts
  • nvd.nist.gov/vuln/detail/CVE-2025-62172

Code Behaviors & Features

Detect and mitigate CVE-2025-62172 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2025.1.0 before 2025.10.2

Fixed versions

  • 2025.10.2

Solution

Upgrade to version 2025.10.2 or above.

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/homeassistant/CVE-2025-62172.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 22 Oct 2025 12:18:40 +0000.