CVE-2026-71259 Details
Description
ESPHome through 2026.7.0-dev contains an operator-precedence bug in the cv.url validator in esphome/config_validation.py. Because binds tighter than , any file: URI passes validation regardless of netloc. This validator gates the field of the external_components YAML directive's git source schema, which is passed to (git supports file:// natively).
A vulnerability exists in ESPHome versions through 2026.7.0-dev, specifically within the URL validation function of the external_components directive. The issue arises from an operator-precedence error, where the 'and' operator binds more tightly than 'or'. This flaw allows any 'file:' URI to bypass validation, regardless of the netloc component. As a result, a crafted external_components block can clone an attacker-controlled repository from a local file path. This repository is then executed as Python code when the ESPHome configuration is processed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 5, 2026CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/esphome/esphome | TuranSec | Vendor |
| https://github.com/esphome/esphome/blob/dev/esphome/config_validation.py | TuranSec | Source CodeVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| ESPHome | <= 2026.7.0-dev (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | TuranSec |
Volerion