Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-62172

HIGH · 8.5 CVSS v4.0 Published 2025-10-14
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
89/100
Remediation priority · High
Remotely reachable

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Home Assistant versions 2025.1.0-2025.10.1 contain a stored cross-site scripting vulnerability in the energy dashboard where entity names are not sanitized before rendering in graph tooltips. An authenticated attacker can inject malicious JavaScript into an energy entity's name field that executes when other users hover over data points in the energy dashboard.

MitigationUpgrade Home Assistant to version 2025.10.2 or later to apply the patch. No workarounds exist for this vulnerability.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
Authentication
X
User interaction
A
Scope
X

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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Confirm Home Assistant version
    Navigate to Home Assistant Settings > System > Repairs, or use the CLI command: ha core version. Alternatively, check the file /config/.HAVERSION if it exists.
    Affected if The installed version falls between 2025.1.0 and 2025.10.1 inclusive.
  2. Verify energy dashboard is enabled
    Navigate to Energy Dashboard in the Home Assistant UI (Energy icon in sidebar). If you can access energy statistics and graphs, the dashboard is enabled.
    Affected if The energy dashboard feature is actively configured or has been used.
  3. Identify registered energy entities
    Go to Settings > Energy > Energy Sources. Review all configured entities under electricity, gas, solar, and other energy sources. Note the entity_id and entity name for each entry.
    Affected if Any energy entities are listed in the energy configuration.
  4. Inspect entity names for XSS payloads
    Examine the "Name" field for each energy entity. Look for unexpected characters such as <, >, script, javascript:, onerror, onload, or other HTML/script content that did not come from your own naming.
    Affected if Any entity name contains HTML tags, script elements, or suspicious JavaScript event handlers.
  5. Check for third-party supplied entities
    If you use an energy provider integration like Tibber, check the automatically created entities under Developer Tools > States. Look for entities with names matching provider-supplied defaults.
    Affected if Energy entities exist that were created automatically by third-party integrations (e.g., Tibber) and their names contain unexpected content.

You are affected if your Home Assistant version is 2025.1.0-2025.10.1 AND the energy dashboard is enabled with entities that have unsanitized names containing script or HTML tags.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade Home Assistant to version 2025.10.2 or later to apply the patch. No workarounds exist for this vulnerability.

Recommended fix High confidence

Home Assistant 2025.10.2

  1. Ensure you have a current backup of your Home Assistant instance before updating
  2. For Home Assistant Core: Run `ha core update` or update via Settings > System > Updates in the UI
  3. For Home Assistant OS: Navigate to Settings > System > Repairs > Three dots > Check for updates, then install version 2025.10.2
  4. For Docker: Pull the new image `homeassistant/home-assistant:2025.10.2` and recreate the container
  5. After update, verify the energy dashboard works correctly and entity names render as plain text in tooltips
Caveat Review Home Assistant 2025.10 release notes for any breaking changes to energy integrations or automations before upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing2.0 h
  • Review / QA1.0 h
7.0 hours of engineering $1,240
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,984.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-62172 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-62172 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data