CVE-2026-40602

MEDIUM CVSS 3.1: 5.6 EPSS 0.11%
Updated Oct 27, 2026
Home-Assistant-Ecosystem
Parameter Value
CVSS 5.6 (MEDIUM)
Affected Versions before 1.0.0
Fixed In 1.0.0
Type CWE-94 (Code Injection), CWE-1336 (Template Injection)
Vendor Home-Assistant-Ecosystem
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
High
Admin privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Home-Assistant-Ecosystem Home_Assistant_Command-Line_Interface
cpe:2.3:a:home-assistant-ecosystem:home_assistant_command-line_interface:*:*:*:*:*:*:*:*
— 1.0.0