Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local WiFi or LAN access
-
DeliveryEstablish WebSocket session to port 8080
-
ExploitAwait concurrent victim client MCP request
-
ExecutionReceive globally broadcast MCP response
-
ImpactExtract cross-client payload data
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires: (1) the device runs xiaozhi-esp32 firmware version 2.2.6 or earlier compiled with a board configuration that includes WebSocketControlServer, such as the otto-robot variant; (2) the attacker has already established a WebSocket connection to port 8080 - network-level access to the device and the ability to complete the WebSocket handshake are prerequisites, making purely unauthenticated internet-originated attacks unlikely given typical local-WiFi deployments; (3) at least one concurrent victim client session must be active and issuing MCP requests at the same time as the attacker's session. Exploitation is further constrained by AC:H - the improper synchronization requires concurrent multi-client timing conditions rather than a simple single-request trigger. The limiting factor for most defenders is that the device is typically on a private LAN, meaning the attacker must already have local network presence. |
| Impact | Real-world risk is low, consistent with the CVSS 4.0 base score of 2.3. The vector AV:N/AC:H/PR:L reflects network reachability but demands both a pre-existing WebSocket connection (PR:L) and high-complexity conditions requiring simultaneous multi-client sessions (AC:H), materially reducing practical exploitability. The E:P modifier confirms a public proof-of-concept exists, but the vulnerability is absent from CISA KEV with no confirmed active exploitation. EPSS data was not provided in the available intelligence, leaving that probability signal unknown. The CVSS 4.0 impact is constrained to VI:L with VC:N - however, the 'Information Disclosure' tag and the broadcast mechanism clearly suggest cross-client MCP data exposure occurs, indicating a likely understatement of confidentiality impact in the vendor-submitted vector; this discrepancy is flagged in confidence notes. The product is niche hobbyist IoT firmware typically deployed on local WiFi networks rather than internet-exposed, further limiting real-world blast radius. This does not warrant emergency response but should be patched once the upstream PR merges. |
| Exploit ScenarioDerived | An attacker with access to the same local WiFi network as an affected xiaozhi-esp32 device connects to the WebSocket control server on port 8080 simultaneously with a legitimate user who is issuing MCP commands. Due to the unpatched global broadcast behavior in ParseMessage, the attacker's WebSocket session receives the MCP response intended for the legitimate user, potentially exposing AI interaction results or voice command outputs. A public proof-of-concept is referenced at https://github.com/78/xiaozhi-esp32/issues/2020, though exploitation requires the high-complexity condition of concurrent multi-client sessions on the device. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 28, 2026
Improper response routing in xiaozhi-esp32 firmware up to version 2.2.6 allows any authenticated WebSocket client to receive MCP (Model Context Protocol) responses intended for other connected clients, enabling cross-client information disclosure and low-integrity interference. The flaw resides in the ParseMessage function within main/mcp_server.cc, where the MCP Response Handler broadcasts responses globally to all connected WebSocket clients on port 8080 rather than routing replies back to the originating client. A public proof-of-concept is available via GitHub issue #2020; no active exploitation has been confirmed in CISA KEV, and the CVSS 4.0 score of 2.3 reflects high attack complexity and limited overall impact in this niche IoT context.
RemediationAI
An upstream fix is available as GitHub pull request #2021 (https://github.com/78/xiaozhi-esp32/pull/2021), which replaces the global broadcast mechanism with targeted per-client response delivery; however, this PR was pending acceptance at time of analysis, and no released patched version number has been independently confirmed. Users should monitor the repository for a tagged release incorporating this PR and upgrade firmware immediately upon availability. As a compensating control, restrict network access to port 8080 via host-based firewall rules or VLAN segmentation so only explicitly trusted clients can reach the WebSocket control server - this limits the attacker pool at the cost of reducing remote accessibility. If the WebSocket control server feature is not operationally required for a given deployment, disabling it in the board configuration eliminates the attack surface entirely. Until patched, avoid deploying the device in environments where multiple untrusted clients share network access to port 8080.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
xiaozhi-esp32 (CPE: cpe:2.3:a:78:xiaozhi-esp32:*:*:*:*:*:*:*:*) is an open-source AI companion firmware for Espressif ESP32 microcontrollers that implements an MCP server accessible over WebSocket on port 8080. The root cause, classified as CWE-662 (Improper Synchronization), is the absence of a client-session binding between incoming MCP requests and outgoing responses: the pre-patch code registered a global broadcast callback via RegisterMcpBroadcastCallback that invoked BroadcastMessage to every connected WebSocket client indiscriminately. The PR #2021 fix introduces a ClientInfo struct tracking a per-connection uint64_t client_id, a GetClientId() lookup, and a per-client response_sender callback injected into ParseMessage, replacing broadcast with targeted delivery and adding stale-client detection in SendMessage via client_id comparison. The vulnerability manifests specifically in the otto-robot board configuration that instantiates WebSocketControlServer.
Know when Xiaozhi Esp32 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
AV:N for WebSocket access; AC:H for concurrent-client requirement; PR:L for initial connection; C:L added because broadcast inherently discloses cross-client MCP responses.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
1DescriptionCVE.org
A weakness has been identified in 78 xiaozhi-esp32 up to 2.2.6. Affected by this issue is the function ParseMessage of the file main/mcp_server.cc of the component MCP Response Handler. This manipulation causes improper synchronization. Remote exploitation of the attack is possible. The attack's complexity is rated as high. The exploitation is known to be difficult. The exploit has been made available to the public and could be used for attacks. The pull request to fix this issue awaits acceptance.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-39989
GHSA-2vm4-w283-mr2p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB