CVE-2026-40602

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:home-assistant-ecosystem:home_assistant_command-line_interface:*:*:*:*:*:*:*:*

History

26 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) La interfaz de línea de comandos de Home Assistant (hass-cli) es una herramienta de línea de comandos para Home Assistant. Hasta la versión 1.0.0 de home-assistant-cli, se utilizaba un entorno sin restricciones para manejar plantillas Jinja2 en lugar de uno aislado. La entrada proporcionada por el usuario dentro de las plantillas Jinja2 se renderizaba localmente sin restricciones. Esto daba a los usuarios acceso a los componentes internos de Python y extendía el alcance de la creación de plantillas más allá del uso previsto. Esta vulnerabilidad está corregida en la versión 1.0.0.

Information

Published : 2026-04-21 18:16

Updated : 2026-10-26 21:10


NVD link : CVE-2026-40602

Mitre link : CVE-2026-40602

CVE.ORG link : CVE-2026-40602


JSON object : View

Products Affected

home-assistant-ecosystem

  • home_assistant_command-line_interface
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

CWE-1336

Improper Neutralization of Special Elements Used in a Template Engine