# CVE-2024-27287: PYSEC-2026-1329 - esphome vulnerable to stored Cross-site Scripting in edit configuration file API

Source: https://junglewise.ai/threats/cve-2024-27287-esphome-vulnerable-to-stored-cross-site-scripting-in-edit  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2024-27287 · Severity: low · CVSS 3.1 · Published 2026-07-07

esphome vulnerable to stored Cross-site Scripting in edit configuration file API

Technologies: [esphome (PyPI)](https://junglewise.ai/threats/technologies/pypi-esphome). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-27287 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-27287 being exploited in the wild.

**How severe is CVE-2024-27287?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** esphome (PyPI) ECOSYSTEM:introduced=2023.12.9,fixed=2024.2.2.

**Is there a fix for CVE-2024-27287?** Yes. esphome (PyPI): upgrade to 2024.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-27287?** Check whether you run esphome (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- esphome (PyPI): upgrade to 2024.2.2 or later

  ```sh
  pip install "esphome>=2024.2.2"
  ```


## Affected products

- esphome (PyPI) ECOSYSTEM:introduced=2023.12.9,fixed=2024.2.2

## Identifiers

- CVE-2024-27287
- GHSA-9p43-hj5j-96h5
- PYSEC-2026-1329

## Related threats

- [PYSEC-2026-1326 - ESPHome vulnerable to denial-of-service via out-of-bounds check bypass in the API component](https://junglewise.ai/threats/cve-2026-23833-esphome-vulnerable-to-denial-of-service-via-out-of-bounds-check)
- [PYSEC-2026-1330 - ESP-IDF web_server basic auth bypass using empty or incomplete Authorization header](https://junglewise.ai/threats/cve-2025-57808-esp-idf-web-server-basic-auth-bypass-using-empty-or-incomplete)
- [PYSEC-2026-1327 - ESPHome vulnerable to Authentication bypass via Cross site request forgery](https://junglewise.ai/threats/cve-2024-29019-esphome-vulnerable-to-authentication-bypass-via-cross-site)
- [PYSEC-2026-1328 - ESPHome vulnerable to remote code execution via arbitrary file write](https://junglewise.ai/threats/cve-2024-27081-esphome-vulnerable-to-remote-code-execution-via-arbitrary-file)
- [Basic auth bypass in esphome](https://junglewise.ai/threats/cve-2021-41104-basic-auth-bypass-in-esphome)
