CVE-2026-59178esphome device-builder
Pérdida de autenticación en ESPHome Device Builder por cambio de variables de e…
Crítica 9.8 Sin autenticación
Seguir: esta CVE · esphome · esphome device-builder Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 14 sep 2026
- Actualizada
- 30 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-306
- SSVC (CISA)
- Explotación: ninguna · Automatizable: sí · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Qué pasa
ESPHome Device Builder versiones anteriores a 1.0.12 pierden la autenticación al actualizar si se usaban las variables de entorno antiguas $USERNAME y $PASSWORD. Un atacante con acceso a la red puede acceder sin autenticación al dashboard si la instancia se actualizó sin cambiar las credenciales a las nuevas variables $ESPHOME_USERNAME y $ESPHOME_PASSWORD.
Ver el texto original de NVD (en inglés)
ESPHome Device Builder Dashboard is a dashboard for the ESPHome home management software. Prior to version 1.0.12, the dashboard reads its authentication credentials from `$ESPHOME_USERNAME` and `$ESPHOME_PASSWORD`. Earlier versions, and the legacy `esphome` dashboard, read the bare `$USERNAME` and `$PASSWORD` instead. When the env vars were renamed the bare names were dropped with no fallback, so an operator who had protected their dashboard with `USERNAME` / `PASSWORD` (as the older getting started guide documented) loses authentication on upgrade and the dashboard starts open to anyone who can reach its port. The issue is fixed in 1.0.12. The bare `$USERNAME` / `$PASSWORD` are accepted again as a deprecated fallback so previously protected instances stay protected across the upgrade without operator intervention, with a loud deprecation warning at startup directing operators to rename them to `$ESPHOME_USERNAME` / `$ESPHOME_PASSWORD`. The fallback is gated on `$PASSWORD` being set and is only adopted as a pair, so the OS provided `$USERNAME` is never read on its own and the original collision footgun stays closed. A lone bare `$PASSWORD` with no username still fails loud as a credential mismatch rather than starting unauthenticated. This restores compatibility rather than failing closed on the legacy names, because the priority is that an instance which was protected before the upgrade stays protected without the operator having to act; the deprecation warning plus a future removal handles the migration. Operators should migrate to the `$ESPHOME_*` names. The esphome container delivers the fix in the 2026.6.2 release, which bumps its pinned `esphome-device-builder` version to 1.0.12. Without upgrading, restore authentication immediately by setting the new env vars to the same values, on any affected version. Alternatively, do not expose the dashboard port to untrusted networks, and check the startup logs for the `WITHOUT AUTHENTICATION` banner to confirm whether a given instance is currently open.
Qué hacer
Hay parche · versiones corregidas: 1.0.12
Actualiza esphome-device-builder a versión 1.0.12 o superior. Migra las credenciales a las variables $ESPHOME_USERNAME y $ESPHOME_PASSWORD. Verifica los logs de inicio para confirmar que el dashboard está autenticado.
- Aplica la actualización de seguridad del fabricante para device-builder.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | esphome-device-builder |
< 1.0.12 |
1.0.12 |
pip install "esphome-device-builder>=1.0.12" |
| PyPI | esphome-device-builder |
< 1.0.12 |
1.0.12 |
pip install "esphome-device-builder>=1.0.12" |
Según OSV / GitHub Advisories (GHSA-rrxg-g2pf-6hh4, PYSEC-2026-4049). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- esphome · device-builder
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.