# CVE-2025-62172: Home Assistant vulnerable to Stored XSS in Energy dashboard from Energy Entity Name

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High; Exploit maturity: Proof of concept
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **CWE:** CWE-80, CWE-79
- **Aliases:** GHSA-mq77-rv97-285m, PYSEC-2026-1453
- **Published:** 2025-10-14T15:14:09.946Z
- **Modified:** 2026-10-08T11:10:00.250Z

## Who should check

- Projects that depend on PyPI package homeassistant (\>= 2025.1.0, \< 2025.10.2)
- Anyone running home-assistant core \>= 2025.1.0, \< 2025.10.2

## Description

Home Assistant is open source home automation software that puts local control and privacy first. In versions 2025.1.0 through 2025.10.1, the energy dashboard is vulnerable to stored cross-site scripting. An authenticated user can inject malicious JavaScript code into an energy entity's name field, which is then executed when any user hovers over data points in the energy dashboard graph tooltips. The vulnerability exists because entity names containing HTML are not properly sanitized before being rendered in graph tooltips. This could allow an attacker with authentication to execute arbitrary JavaScript in the context of other users' sessions. Additionally, if an energy provider (such as Tibber) supplies a malicious default name for an entity, the vulnerability can be exploited without direct user action when the default name is used. This issue has been patched in version 2025.10.2. No known workarounds exist.

## Affected and fixed versions

- PyPI `homeassistant`: affected \>= 2025.1.0, \< 2025.10.2; fixed 2025.10.2 (osv)
- home-assistant core: \>= 2025.1.0, \< 2025.10.2 (cvelist)

## Mitigation

- Upgrade homeassistant to 2025.10.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-62172. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-62172.md
Affected: homeassistant >= 2025.1.0, < 2025.10.2
Fixed in: 2025.10.2

Steps:
1. Search this machine and project for homeassistant (PyPI), home-assistant core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-62172 being exploited?

There is no confirmed exploitation: CVE-2025-62172 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-62172?

High: CVSS 8.5 (v4.0, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-62172?

homeassistant \>= 2025.1.0, \< 2025.10.2.

### Is there a fix for CVE-2025-62172?

Yes. Fixed in 2025.10.2. Upgrade homeassistant to 2025.10.2 or later.

### How do I check if I'm affected by CVE-2025-62172?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-62172>
- vendor: <https://github.com/advisories/GHSA-mq77-rv97-285m>
- other: <https://github.com/home-assistant/core>
- other: <https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts>
- other: <https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts#L329-L339>
- other: <https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-devices-graph-card.ts#L110>
- other: <https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-usage-graph-card.ts#L467-L478>
- other: <https://pypi.org/project/homeassistant>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-62172>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mq77-rv97-285m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1453> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-62172> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-62172>
