All CVEs / Home-assistant-ecosystem
CVE-2026-40602Home-assistant-ecosystem Home Assistant Command-line Interface
Medium 5.6
Follow: this CVE · Home-assistant-ecosystem · Home-assistant-ecosystem Home Assistant Command-line Interface We alert you by email or Slack (account required).
- Priority
- 34
- CVSS 3.1
- 5.6
- EPSS
- —
- Auth required
- Yes
- Published
- Apr 21, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- 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.
What to do
- Apply the vendor's security update for Home Assistant Command-line Interface.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| home-assistant-ecosystem | home_assistant_command-line_interface | < 1.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking
- github.com Mitigation Vendor Advisory