{"id":"CVE-2025-62172","published":"2025-10-14T15:14:09Z","modified":"2025-10-21T20:39:28Z","title":"Home Assistant vulnerable to Stored XSS in Energy dashboard from Energy Entity Name","vendor":"home-assistant","product":"core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00607,"percentile":0.43158,"provenance":"source"},"cwes":[{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":8.63},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"home-assistant","affectedVersions":[{"vendor":"home-assistant","product":"core","versions":[">= 2025.1.0, < 2025.10.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-14T16:07:00.569115Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"homeassistant","vulnerableRanges":[">=2025.1.0, <2025.10.2"],"patched":["2025.10.2"],"from":["GHSA-mq77-rv97-285m","PYSEC-2026-1453"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw exists in the Energy dashboard of Home Assistant Core, where energy entity names containing HTML are not sanitized before being rendered in graph tooltips. An attacker who has an authenticated account can place malicious JavaScript in an energy entity's name field, and it runs when users hover over data points in the dashboard graph, provided the user interacts with the tooltips; if an energy provider supplies a malicious default entity name, the script can run without any user action.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:42Z"},"euvd":{"id":"EUVD-2025-34249","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-home-assistant-core-cve-2025-62172","children":[{"from":"CVE-2025-62172","to":"CVE-2026-33045","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"Starting in version 2025.02 and prior to version 2026.01 the \"remaining charge time\"-sensor for mobile phones (imported/included from Android Auto it appears) is vulnerable cross-site scripting, similar to CVE-2025-62172.","from":"CVE.org","in":"CVE-2026-33045"},{"kind":"osv-related","provenance":"source","id":"GHSA-mq77-rv97-285m","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-46j8-vpx8-6p72","via":"reference","url":"https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m"},{"kind":"osv-related","provenance":"source","id":"PYSEC-2026-2516","via":"reference","url":"https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m"}]}]}}