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.
Published: 2026-07-21
Score: 2.1 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Home Assistant Core’s Shelly integration allows an attacker who can modify a Shelly device’s thumb field to inject arbitrary HTML content via a data URI bearing a text/html MIME type. This unsanctioned content is served through the media player proxy endpoint with a Content‑Type of text/html, enabling script execution within the Home Assistant web origin. Successful exploitation could allow an attacker to steal session tokens stored in local storage and perform authenticated calls to sensitive service endpoints such as locks, alarms, and covers.

Affected Systems

Any instance of Home Assistant Core running a version earlier than 2026.5.4 is vulnerable. This includes deployments on all platforms where Home Assistant Core 2026.5.3 or earlier is in use. The vulnerability is tied to the Shelly integration, so systems that have enabled Shelly devices are at risk.

Risk and Exploitability

The CVSS score is 2.1, indicating a low severity, and the EPSS score is less than 1%, underscoring a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. The most likely attack vector is an attacker with network access to a Shelly device or the ability to influence the thumb field locally; no publicly disclosed exploit code is known. Because the flaw involves client‑side script execution, exploitation requires that the victim access the Home Assistant web interface where the injected payload is rendered.

Generated by OpenCVE AI on July 30, 2026 at 17:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Home Assistant Core to version 2026.5.4 or later to remove the XSS-eligible code path.
  • Restrict network access to Shelly devices so that only authorized controllers can modify the thumb field, effectively preventing malicious data URI injections.
  • Audit Home Assistant logs and monitor the media player API for unusual GET requests containing data URIs or content types that deviate from image formats.

Generated by OpenCVE AI on July 30, 2026 at 17:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 22 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
First Time appeared Home-assistant
Home-assistant home-assistant
CPEs cpe:2.3:a:home-assistant:home-assistant:*:*:*:*:*:*:*:*
Vendors & Products Home-assistant
Home-assistant home-assistant

Tue, 21 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title Home Assistant Core < 2026.5.4 XSS via Shelly media_player.py thumb URI
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.1, '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'}


Subscriptions

Home-assistant Home-assistant
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-22T14:12:16.922Z

Reserved: 2026-07-20T18:27:48.160Z

Link: CVE-2026-64823

cve-icon Vulnrichment

Updated: 2026-07-22T14:12:11.243Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')