VAITP Dataset

← Back to the dataset

CVE-2026-59177

Unauthenticated LAN access to ESPHome dashboard allows remote code execution and config theft.

  • CVSS 8.8
  • CWE-1327
  • Authentication, Authorization, and Session Management
  • Local

ESPHome Device Builder Dashboard is a dashboard for the ESPHome home management software. Prior to 1.0.10, the `Home Assistant` add-on's trusted `ingress` site binds to `0.0.0.0` while intentionally skipping dashboard authentication because the supervisor is expected to authenticate requests upstream. Host networking, required for mDNS, also binds this no-auth site to the `Home Assistant` host's LAN interface. Any device on that local network can therefore connect directly to the `ingress` port, bypass the supervisor, and obtain the full dashboard without credentials or operator misconfiguration. Dashboard capability includes compile-time Python execution through `external_components:`, shell execution through compile and validation subprocesses, and arbitrary access to configuration and data files, compromising the mounted `Home Assistant` configuration and managed ESPHome devices. The standalone Docker dashboard and the password-gated public port 6052 are not affected. This issue is fixed in version 1.0.10.

CVSS base score
8.8
Published
2026-10-28
OWASP
A01 Broken Access Control
Orthogonal defect classification
Interface
Code defect classification
Missing Interface
Category
Authentication, Authorization, and Session Management
Subcategory
Insecure Authentication Mechanisms
Accessibility scope
Local
Impact
Unauthorized Access
Affected component
ESPHome

Solution

Upgrade ESPHome Device Builder Dashboard to version 1.0.10 or later.

Vulnerable code sample

import asyncio
from aiohttp import web

# VULNERABLE: binds to all interfaces without authentication
app = web.Application()
routes = web.RouteTableDef()

@routes.get('/dashboard')
async def dashboard(request):
    # Insecure: no auth check
    return web.Response(text="ESPHome Dashboard")

app.add_routes(routes)

def main():
    # Listen on all interfaces, exposing dashboard to LAN
    web.run_app(app, host='0.0.0.0', port=6050)

if __name__ == '__main__':
    main()

Patched code sample

import asyncio
from aiohttp import web
from aiohttp_basicauth import BasicAuthMiddleware

# FIX: bind to localhost and enforce basic auth
app = web.Application(middlewares=[BasicAuthMiddleware(username='admin', password='s3cr3t')])
routes = web.RouteTableDef()

@routes.get('/dashboard')
async def dashboard(request):
    return web.Response(text="ESPHome Dashboard")

app.add_routes(routes)

def main():
    # Restrict to loopback interface, preventing LAN access
    web.run_app(app, host='127.0.0.1', port=6050)

if __name__ == '__main__':
    main()

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

Cite this entry

@misc{vaitp:cve202659177,
  title        = {{Unauthenticated LAN access to ESPHome dashboard allows remote code execution and config theft.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-59177},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-59177/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.