Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40602: The Home Assistant Command-line interface (hass-cli) is a command-line tool for Home Assistant

20
Routine
MEDIUM 5.6UPGRADE

CVE-2026-40602 is a medium-severity flaw (CVSS 5.6) affecting home assistant command-line interface. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score5.6 (Medium)
Attack vectorLocal
Attack complexityHigh
Privileges neededHigh
User interactionRequired
EPSS exploit chance0.1% (top 99%)
CISA exploited listNo
WeaknessCWE-94, CWE-1336
Published2026-04-21
Last modified2026-10-26
Publisher (CNA): GitHub, Inc. · Vendor: home-assistant-ecosystem

Share: LinkedIn · X · Reddit

Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

home-assistant-ecosystem home assistant command-line interface UPGRADE
Affected: < 1.0.0
Fixed in: 1.0.0
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy home-assistant-command-line-interface || rpm -q home-assistant-command-line-interface || home-assistant-command-line-interface --version
2. UPGRADE to 1.0.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade home-assistant-command-line-interface
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade home-assistant-command-line-interface
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40602?

home assistant command-line interface: upgrade to 1.0.0. Exact commands for each OS are on this page.

Is CVE-2026-40602 being exploited?

CVE-2026-40602 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40602 affect?

CVE-2026-40602 affects home assistant command-line interface. Severity is medium (CVSS 5.6). 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

How urgent is CVE-2026-40602?

Priority 20/100. No elevated risk signals yet.

Software pages

Python vulnerabilities · Home Assistant vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.