CVE-2026-40602: The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant
CVE-2026-40602 is a medium-severity flaw (CVSS 5.6) affecting home assistant command-line interface. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant. Up to 1.0.0 of home-assitant-cli an unrestricted environment was used to handle Jninja2 templates instead of a sandboxed one. The user-supplied input within Jinja2 templates was rendered locally with no restrictions. This gave users access to Python's internals and extended the scope of templating beyond the intended usage. This vulnerability is fixed
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40602?
home assistant command-line interface: upgrade to 1.0.0. Exact commands for each OS are on this page.
Is CVE-2026-40602 being exploited?
CVE-2026-40602 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40602 affect?
CVE-2026-40602 affects home assistant command-line interface. Severity is medium (CVSS 5.6). The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant. Up to 1.0.0 of home-assitant-cli an unrestricted environment was used to handle Jninja2 templates instead of a sandboxed one. The user-supplied
How urgent is CVE-2026-40602?
Priority 20/100. No elevated risk signals yet.
Software pages
Python vulnerabilities · Home Assistant vulnerabilities