CVE-2025-62172
Home Assistant vulnerable to Stored XSS in Energy dashboard from Energy Entity Name
Also known as GHSA-mq77-rv97-285m, PYSEC-2026-1453
Mitigation
- Upgrade homeassistant to 2025.10.2 or later.
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
Vulnerability facts
- Affected
- homeassistant >= 2025.1.0, < 2025.10.2
- Fixed in
- 2025.10.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- 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:POpen in CVSS calculator
Show all 12 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
- EPSS
- 0.61% chance of exploitation in 30 days (percentile 43, 2026-11-26)
- CWE
- CWE-80, CWE-79
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI homeassistant | >= 2025.1.0, < 2025.10.2 | 2025.10.2 | osv |
| home-assistant core | >= 2025.1.0, < 2025.10.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Other
- https://github.com/home-assistant/core
- https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/common/entity/compute_state_name.ts
- https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/data/recorder.ts#L329-L339
- https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-devices-graph-card.ts#L110
- https://github.com/home-assistant/frontend/blob/c13a80ce5e7ae39f0262444e2b6295a074a96732/src/panels/lovelace/cards/energy/hui-energy-usage-graph-card.ts#L467-L478
- https://pypi.org/project/homeassistant
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.