Live threats

All CVEs / Home-assistant-ecosystem

CVE-2026-40602Home-assistant-ecosystem Home Assistant Command-line Interface

Medium 5.6

Priority
34
CVSS 3.1
5.6
EPSS
—
Auth required
Yes
Published
Apr 21, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-94, CWE-1336
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Home Assistant Command-line Interface.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI homeassistant-cli < 1.0.0 1.0.0 pip install "homeassistant-cli>=1.0.0"
PyPI homeassistant-cli < 1.0.0 1.0.0 pip install "homeassistant-cli>=1.0.0"

Per OSV / GitHub Advisories (GHSA-33qf-q99x-wpm8, PYSEC-2026-2518). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
home-assistant-ecosystemhome_assistant_command-line_interface< 1.0.0

Official sources

References

Links published by the sources. Open them with care.