8.6High

CVE-2026-71259ESPHome external_components file:// Scheme Validation Bypass Leading to Remote Code Execution

esphome esphome Published: (3 months ago)

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).

Weakness (CWE): CWE-184

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
esphome esphome ≤ 2026.7.0

References and patches