Intel

AIKIDO-2026-728058

homeassistant is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)CVE-2026-64823 Published 5 days ago

47

Medium Risk

This Affects:

PYTHONhomeassistant
2026.5.0 - 2026.5.3
Fixed in 2026.5.4
Are you affected? Scan for Free

TL;DR

The Shelly integration's media image proxy serves the bytes referenced by a device-controlled thumb field without checking the content type against an image allowlist. An attacker who controls a paired Shelly device can supply a data: URI with a text/html content type, causing the media player proxy endpoint to return attacker-controlled HTML under the Home Assistant web origin. Script in that response runs in the trusted origin and can steal session tokens from local storage and call authenticated service endpoints such as locks, alarms, and covers. The fix validates the MIME type of the thumb data URI so only image content is served through the proxy.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the Shelly integration with a media player device whose reported media metadata can include an untrusted thumb data URI.

Background info

homeassistant is vulnerable to Cross-Site Scripting (XSS) in versions 2026.5.0 - 2026.5.3.

How to fix this

Upgrade the homeassistant library to the patch version.