CVE-2024-27287 is a stored cross-site scripting vulnerability in the ESPHome dashboard component's edit configuration file API. In affected versions starting at 2023.12.9 and before 2024.2.2, the /edit endpoint serves user-controlled configuration file content as "Content-Type: text/html; charset=UTF-8" without proper sanitization. A remote authenticated attacker can use a POST request to /edit to write arbitrary JavaScript into a configuration file, because the configuration parameter allows the attacker to specify the file to write. When another authenticated user later visits /edit?configuration=[malicious file], the injected script executes in the context of the ESPHome dashboard. The issue affects both command line installations and the Home Assistant add-on. The provided context also notes that cookies were not correctly secured, which can facilitate session cookie exfiltration.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
No public exploits tracked yet. Mallory keeps watching.
No public exploit code observed for this vulnerability.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A stored cross-site scripting vulnerability in the ESPHome dashboard edit configuration file API that allows an authenticated user to inject arbitrary JavaScript into configuration files and execute it when a victim visits the crafted /edit page, enabling actions on behalf of the logged-in user and possible session cookie exfiltration.
A referenced vulnerability that can be chained with CVE-2024-27081 and CVE-2024-29019 to achieve unauthenticated remote code execution on the host running the ESPHome dashboard. The content does not provide further detail on this CVE itself.
A separate vulnerability referenced only as chainable with CVE-2024-29019 to force a victim to load injected file content and execute malicious content. No further details are provided in the content.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.