p PatchFirst

CVE-2026-40602

CVE-2026-40602 · hass-cli: Handling of user-supplied Jinja2 templates

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.6 · Medium · EPSS 0.1% · Fix available

Published
Updated

Stack: python

Affected products and versions

  • home-assistant-cli

    Versions
    • < 1.0.0: Affected

    No fix published

  • homeassistant-cli PyPI

    Versions
    • 0.0.1
    • 0.0.2
    • 0.1.0
    • 0.2.0
    • 0.3.0
    • 0.3.1
    • 0.4.0
    • 0.4.2
    • 0.4.3
    • 0.4.4
    • 0.5.0
    • 0.6.0
    • 0.7.0
    • 0.8.0
    • 0.8.0.dev20190526135708
    • 0.8.0.dev20190605085655
    • 0.8.0.dev20190606203343
    • 0.8.0.dev20190620181132
    • 0.8.0.dev20190830233747
    • 0.8.0.dev20190831013412
    • 0.8.0.dev20190904132147
    • 0.8.0.dev20190904150333
    • 0.8.0.dev20190904150359
    • 0.8.0.dev20190904150421
    • 0.8.0.dev20190904150522
    • 0.8.0.dev20190904150533
    • 0.8.0.dev20190904150553
    • 0.8.0.dev20190904150620
    • 0.8.0.dev20190905133825
    • 0.8.0.dev20190905140301
    • 0.8.0.dev20191020214221
    • 0.8.0.dev20191020224629
    • 0.8.0.dev20191031201051
    • 0.9.0
    • 0.9.0.dev20191117224053
    • 0.9.0.dev20191117231524
    • 0.9.1
    • 0.9.2
    • 0.9.3
    • 0.9.4
    • 0.9.6
    Affected ranges
    • ECOSYSTEM: < 1.0.0

    Update to 1.0.0

Original sources

Check your server →