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.
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.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20260327-16402/CVE-2026-33045
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33045
- https://data.safetycli.com/changelogs/homeassistant/
- https://github.com/advisories/GHSA-46j8-vpx8-6p72
- https://pypi.org/project/homeassistant
- https://github.com/home-assistant/core/security/advisories/GHSA-46j8-vpx8-6p72
- https://github.com/home-assistant/core/security/advisories/GHSA-mq77-rv97-285m
- https://nvd.nist.gov/vuln/detail/CVE-2026-33045
- https://github.com/advisories/GHSA-46j8-vpx8-6p72
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
