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

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-10-14T15:14:09.946Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-mq77-rv97-285m, PYSEC-2026-1453
- Related: CVE-2026-33045
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- home-assistant core: >= 2025.1.0, < 2025.10.2
- homeassistant (PyPI): from 2025.1.0 before 2025.10.2

## Every score

- GitHub_M: CVSS:4.0 8.5 High `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`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

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

## Sources

- CVE List: [CVE-2025-62172](https://www.cve.org/CVERecord?id=CVE-2025-62172), CVE Terms of Use, modified 2025-10-21
- GitHub Advisory Database: [GHSA-mq77-rv97-285m](https://github.com/advisories/GHSA-mq77-rv97-285m), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2025-62172](https://nvd.nist.gov/vuln/detail/CVE-2025-62172), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2026-1453](https://osv.dev/vulnerability/PYSEC-2026-1453), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-62172 · Whole record: https://cve.day/CVE-2025-62172.json · Rebuilt by cve.day 2026-11-25T22:59:06.049Z
