RCE in Home-assistant-ecosystem Home-assistant-cli

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…

Vulnerability class: RCE (Remote Code Execution)

EPSS: 0.000 (5.5th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.6 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-40602?
CVE-2026-40602 is a medium-severity vulnerability in Home-assistant-ecosystem Home-assistant-cli, classified under Code Injection. CVSS score: 5.6/10. Published 2026-04-21.
How severe is CVE-2026-40602?
Medium severity. CVSS v3 base score is 5.6 out of 10.