Original description
Home Assistant Core before 2026.5.4 contains a cross-site scripting vulnerability in the Shelly integration's async_get_media_image() method that allows attackers controlling a Shelly device's thumb field to serve arbitrary HTML content by supplying a data URI with a text/html content type without validation against an image-only allowlist. Attackers can cause the media player proxy endpoint to serve attacker-controlled bytes with Content-Type text/html in the Home Assistant web origin, enabling theft of session tokens from local storage and authenticated calls to sensitive service endpoints including lock, alarm, and cover controls.
Affected software
- Home Assistant < 2026.5.4 Fixed in: 2026.5.4 repository or package match
Details
- Published
- 2026-07-22
- Last modified
- 2026-11-08
- CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.30% (percentile 22)
References
- cve.org/CVE-2026-64823
- nvd.nist.gov/vuln/detail/CVE-2026-64823
- github.com/home-assistant/core/releases/tag/2026.5.4
- github.com/home-assistant/core/pull/171585
- github.com/home-assistant/core/commit/894a68acb678afc382fe5ea9002e61ab7f862011
- www.vulncheck.com/advisories/home-assistant-core-xss-via-shelly-media-player-py-thumb-uri
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.