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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-09-14T18:08:57.000Z
- Modified: 2026-10-01T17:56:00.940Z
- Also known as: GHSA-rrxg-g2pf-6hh4, PYSEC-2026-4049
- Weaknesses: CWE-306
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- esphome device-builder: < 1.0.12
- esphome-device-builder (PyPI): before 1.0.12

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-59178](https://www.cve.org/CVERecord?id=CVE-2026-59178), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-rrxg-g2pf-6hh4](https://github.com/advisories/GHSA-rrxg-g2pf-6hh4), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-59178](https://nvd.nist.gov/vuln/detail/CVE-2026-59178), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4049](https://osv.dev/vulnerability/PYSEC-2026-4049), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-59178 · Whole record: https://cve.day/CVE-2026-59178.json · Rebuilt by cve.day 2026-11-25T22:59:38.343Z
