# CVE-2026-59178: ESPHome Device Builder: Renamed auth env vars silently disable dashboard authentication on upgrade

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.78% (percentile 52, 2026-11-26)
- **CWE:** CWE-306
- **Aliases:** GHSA-rrxg-g2pf-6hh4, PYSEC-2026-4049
- **Published:** 2026-09-14T18:08:57.000Z
- **Modified:** 2026-10-01T17:56:00.940Z

## Who should check

- Projects that depend on PyPI package esphome-device-builder (\< 1.0.12)
- Anyone running esphome device-builder \< 1.0.12

## Description

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.

## Affected and fixed versions

- PyPI `esphome-device-builder`: affected \< 1.0.12; fixed 1.0.12 (osv)
- esphome device-builder: \< 1.0.12 (cvelist)

## Mitigation

- Upgrade esphome-device-builder to 1.0.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-59178. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-59178.md
Affected: esphome-device-builder < 1.0.12
Fixed in: 1.0.12

Steps:
1. Search this machine and project for esphome-device-builder (PyPI), esphome device-builder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-59178 being exploited?

There is no confirmed exploitation: CVE-2026-59178 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.78% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-59178?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-59178?

esphome-device-builder \< 1.0.12.

### Is there a fix for CVE-2026-59178?

Yes. Fixed in 1.0.12. Upgrade esphome-device-builder to 1.0.12 or later.

### How do I check if I'm affected by CVE-2026-59178?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/esphome/device-builder/security/advisories/GHSA-rrxg-g2pf-6hh4>
- vendor: <https://github.com/advisories/GHSA-rrxg-g2pf-6hh4>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-59178>
- patch: <https://github.com/esphome/device-builder/pull/1625>
- patch: <https://github.com/esphome/device-builder/commit/9e294f729c3eb7334bb57b9fc49b75b728052f52>
- other: <https://github.com/esphome/device-builder/releases/tag/1.0.12>
- other: <https://github.com/esphome/device-builder>
- other: <https://pypi.org/project/esphome-device-builder>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-59178>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rrxg-g2pf-6hh4> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-4049> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-59178> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-59178>
