Intel

AIKIDO-2026-359630

esphome is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-110781Published Jul 30, 2026
July 30, 2026

88

CVE Score

High

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The ESPHome captive portal lists nearby WiFi networks and writes each scanned SSID into the served portal page and into the /config.json response without encoding it. Because an SSID is an arbitrary byte string taken directly from over-the-air beacon frames, a network name containing HTML or JSON metacharacters is rendered as markup in the unauthenticated portal page and can break out of the JSON string. Script injected this way runs in the browser of whoever opens the portal and can drive the device's unauthenticated endpoints to capture the home WiFi credentials submitted through the provisioning form. The fix assigns the network name via textContent in the frontend and escapes it through the shared json_escape_into_buffer helper before writing it into the JSON response.

How do I fix this?

Upgrade the esphome library to the patch version. If you cannot upgrade yet, remove captive_portal: from the configuration and rebuild to remove the vulnerable portal page and the /update endpoint it auto-loads.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you build a device with the captive_portal component enabled, which serves the unauthenticated portal that renders untrusted nearby WiFi network names.

Package

Versions

0.0.1 - 2026.7.2

Fixed in 2026.7.3

Background info

esphome is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 2026.7.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea