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

High 8.6 Published Updated

An operator-precedence bug in ESPHome's URL validator allows bypassing file:// restrictions, enabling remote code execution via malicious external components.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-71259?

CVE-2026-71259 is a high-severity code injection vulnerability in esphome, published on 5 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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-184

Which versions are affected by CVE-2026-71259?

How do I fix CVE-2026-71259?

No fix has been published for CVE-2026-71259 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-71259 being exploited?

There is no known exploitation of CVE-2026-71259 in the wild and no public exploit code.

Sources

Also known as GHSA-2g7j-rv69-9w67.

Is CVE-2026-71259 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free