CVE-2026-40602
Last modified
CVE-2026-40602 is a medium-severity vulnerability rated 5.6/10 on the CVSS scale. 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. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
Description
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 in 1.0.0.
Metrics
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Home-Assistant-Ecosystem | Home Assistant Command-Line Interface | < 1.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40602?
How severe is CVE-2026-40602?
How do I fix CVE-2026-40602?
Are you affected by CVE-2026-40602?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
