PyPI: homeassistant

CVE-2026-33045

Safety vulnerability ID: SFTY-20260327-16402

Safety legacy ID: pyup.io-90751

Affected versions of the homeassistant package are vulnerable to Cross-site Scripting (XSS) due to missing output escaping and sanitization of entity names. The History-graph card renders the name of a sensor or device entity when displaying a line graph with axis values, and malicious HTML or JavaScript inserted into that entity name is inserted into the page without being properly encoded.

Created at: Mar 31, 2026Updated at: Mar 31, 2026

Overview

Home Assistant has stored XSS in history-graphs

Advisory

Affected versions of the homeassistant package are vulnerable to Cross-site Scripting (XSS) due to missing output escaping and sanitization of entity names. The History-graph card renders the name of a sensor or device entity when displaying a line graph with axis values, and malicious HTML or JavaScript inserted into that entity name is inserted into the page without being properly encoded.

Affected Package

Affecting homeassistant package, versions
>=2025.02,<2026.01

Also affects

---

How to Fix

Upgrade
homeassistant
to
2026.1.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more