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

Published Aug 5, 2026
·
Updated

ESPHome through 2026.7.0-dev contains an operator-precedence bug in the cv.url() validator in esphome/configvalidation.py: if parsed.scheme and parsed.netloc or parsed.scheme == "file": return parsed.geturl(). Because and binds tighter than or, any file: URI passes validation regardless of netloc. This validator gates the url: field of the externalcomponents YAML directive's git source schema, which is passed to git clone (git supports file:// natively). A crafted externalcomponents block with url: "file:///attacker/repo" clones an attacker-controlled local path, which is then added to Python's import machinery via ESPHome's component loader, executing arbitrary Python code when the YAML configuration is processed (e.g. via esphome config/esphome run).

Affected Software

1 affected component
ESPHome ESPHome<=2026.7.0-dev

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade esphome to a version that resolves this vulnerability.

    Fixed in 2026.7.0-dev

Event History

Aug 5, 2026
CVE Published
via MITRE·12:26 PM
Data Sourced
via MITRE·12:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:24 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-71259?

The severity of CVE-2026-71259 is high with a score of 8.6.

2

What are the potential impacts of CVE-2026-71259?

CVE-2026-71259 can lead to remote code execution due to a validation bypass in the ESPHome configuration.

3

How do I fix CVE-2026-71259?

To fix CVE-2026-71259, you should update to the latest version of ESPHome that addresses this vulnerability.

4

What software is affected by CVE-2026-71259?

CVE-2026-71259 affects ESPHome versions through 2026.7.0-dev.

5

What is the cause of CVE-2026-71259?

CVE-2026-71259 is caused by an operator-precedence bug in the cv.url() validator in the ESPHome configuration validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203