CVE-2026-40602
Published:April 21, 2026
Updated:April 23, 2026
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.
Affected Packages
https://github.com/home-assistant-ecosystem/home-assistant-cli.git (GITHUB):
Affected version(s) >=untagged-833e7f9176e1e602853d <1.0.0Fix Suggestion:
Update to version 1.0.0homeassistant-cli (PYTHON):
Affected version(s) >=0.0.1 <1.0.0Fix Suggestion:
Update to version 1.0.0Related ResourcesĀ (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.6
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
HIGH
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.02