GHSA-9p43-hj5j-96h5 · Severity: medium · Ecosystem: pip — esphome vulnerable to stored Cross-site Scripting in edit configuration file API
ESPHome is a system to control your ESP8266/ESP32 for Home Automation systems. Starting in version 2023.12.9 and prior to version 2024.2.2, editing the configuration file API in dashboard component of ESPHome version 2023.12.9 (command line installation and Home Assistant add-on) serves unsanitized data with `Content-Type: text/html; charset=UTF-8`, allowing a remote authenticated user to inject arbitrary web script and exfiltrate session cookies via Cross-Site scripting. It is possible for a malicious authenticated user to inject arbitrary Javascript in configuration files using a POST request to the /edit endpoint, the configuration parameter allows to specify the file to write. To trigger the XSS vulnerability, the victim must visit the page` /edit?configuration=[xss file]`. Abusing this vulnerability a malicious actor could perform operations on the dashboard on the behalf of a logged user, access sensitive information, create, edit and delete configuration files and flash firmware on managed boards. In addition to this, cookies are not correctly secured, allowing the exfiltration of session cookie values. Version 2024.2.2 contains a patch for this issue.
Conclusion & alert: CVE-2024-27287 is rated Moderate Risk (43.6/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.27%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-22 | 0.19% | 0.27% | +0.07% |
| 2 | 2026-03-25 | 0.15% | 0.19% | +0.05% |
| 3 | 2025-12-04 | — | 0.15% | — |
Full EPSS history (10 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 6.5 | 3.1 | MEDIUM |
|
1.2 | 5.2 | [email protected] |
| 8.7 | 3.1 | HIGH |
|
2.3 | 5.8 | [email protected] |
GHSA-9p43-hj5j-96h5 · Severity: medium · Ecosystem: pip — esphome vulnerable to stored Cross-site Scripting in edit configuration file API
| URL | Tags |
|---|---|
| https://github.com/esphome/esphome/commit/37d2b3c7977a4ccbec59726ca7549cb776661455 | Patch |
| https://github.com/esphome/esphome/security/advisories/GHSA-9p43-hj5j-96h5 | Technical Description Vendor Advisory |