CVE-2026-40602
Last modified
CVE-2026-40602 is a medium-severity vulnerability rated 5.6/10 on the CVSS scale. 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. EPSS estimates a 0.10% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Home-Assistant-Ecosystem | Home Assistant Command-Line Interface | < 1.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40602?
How severe is CVE-2026-40602?
How do I fix CVE-2026-40602?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40597Mantis Bug Tracker (MantisBT) is an open source issue tracke…7.6
- CVE-2026-40598Mantis Bug Tracker (MantisBT) is an open source issue tracke…6.9
- CVE-2026-40599ClearanceKit intercepts file-system access events on macOS a…7.1
- CVE-2026-4060The Geo Mashup plugin for WordPress is vulnerable to Time-Ba…7.5
- CVE-2026-40600Chartbrew is an open-source web application that can connect…8.1
- CVE-2026-40601Chartbrew is an open-source web application that can connect…7.5
- CVE-2026-40603Chartbrew is an open-source web application that can connect…6.5
- CVE-2026-40604ClearanceKit intercepts file-system access events on macOS a…4.4
- CVE-2026-40605Tautulli is a Python based monitoring and tracking tool for …5.7
- CVE-2026-40606mitmproxy is a interactive TLS-capable intercepting HTTP pro…4.8
- CVE-2026-40607Mantis Bug Tracker (MantisBT) is an open source issue tracke…7.5
- CVE-2026-40608Next AI Draw.io is a next.js web application that integrates…5.5
Are you affected by CVE-2026-40602?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
