Skip to main content

xiaozhi-esp32 CVE-2026-13489

| EUVDEUVD-2026-39989 LOW
Improper Synchronization (CWE-662)
2026-06-28 VulDB GHSA-2vm4-w283-mr2p
1.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local WiFi or LAN access
  2. Delivery
    Establish WebSocket session to port 8080
  3. Exploit
    Await concurrent victim client MCP request
  4. Execution
    Receive globally broadcast MCP response
  5. Impact
    Extract 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

xiaozhi-esp32 2.2.3
xiaozhi-esp32 2.2.1
xiaozhi-esp32 2.2.4
xiaozhi-esp32 2.2.2
xiaozhi-esp32 2.2.0
xiaozhi-esp32 2.2.5
xiaozhi-esp32 2.2.6

Affected Packages

euvd xiaozhi_esp32 no fix

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

Vendor (VulDB) PRIMARY 1.3 LOW
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
vuln.today AI 4.2 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 28, 2026 - 12:22 NVD
2.3 (LOW) 1.3 (LOW)

DescriptionCVE.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

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Rare
niche open-source ESP32 hobbyist AI companion firmware
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy