Improper Neutralization of Special Elements Used in a Template Engine Affecting homeassistant-cli package, versions [,1.0.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-HOMEASSISTANTCLI-16635501
  • published11 May 2026
  • disclosed16 Apr 2026
  • creditheyitsPiyush

Introduced: 16 Apr 2026

CVE-2026-40602  (opens in a new tab)
CWE-1336  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade homeassistant-cli to version 1.0.0 or higher.

Overview

homeassistant-cli is a Command-line tool for Home Assistant.

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the handling of user-supplied Jinja2 templates. An attacker can execute arbitrary code by convincing a user to download and render a malicious template with the --local option.

CVSS Base Scores

version 4.0
version 3.1