Skip to main content
Vulnerability Database/CVE-2026-111623

CVE-2026-111623: Xiaozhi ESP32 Server Auth Bypass Flaw

CVE-2026-111623 is an authentication bypass vulnerability in Xiaozhi-esp32-server-java that lets attackers obtain WebSocket tokens without credentials. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111623 Overview

CVE-2026-111623 is an authentication bypass vulnerability in Xiaozhi-esp32-server-java through version 6.1.0. The flaw resides in the /api/device/ota endpoint, which issues valid device WebSocket tokens to any requester supplying a MAC address. No prior authentication or device ownership verification is required.

An unauthenticated attacker can request a token for an arbitrary device MAC, open the victim device's WebSocket channel, and interact with the server as that device. This exposes private role system prompts, allows injection of conversation history, consumes paid LLM, Speech-to-Text (STT), and Text-to-Speech (TTS) credentials, and permits overwriting of device metadata. The weakness is tracked under CWE-290: Authentication Bypass by Spoofing.

Critical Impact

Unauthenticated attackers can impersonate any registered device, hijack its WebSocket session, exfiltrate private prompts and conversations, and burn through paid AI service credentials.

Affected Products

  • Xiaozhi-esp32-server-java versions up to and including 6.1.0
  • xiaozhi-common module (DeviceAuthService)
  • xiaozhi-server module (DeviceAppService, DeviceController)

Discovery Timeline

  • 2026-10-16 - CVE-2026-111623 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111623

Vulnerability Analysis

Xiaozhi-esp32-server-java is a Java backend that supports ESP32-based voice assistant devices. The server exposes an Over-The-Air (OTA) update endpoint at /api/device/ota for device bootstrap and provisioning. This endpoint accepts a device MAC address and returns a WebSocket connection token used to authenticate subsequent realtime sessions.

The server performs no verification that the requester actually owns the submitted MAC address. Any network client can submit an arbitrary MAC and receive a valid token tied to that device. With the token, an attacker establishes a WebSocket session as the victim device and gains the same privileges the legitimate device would hold.

Session abuse enables several follow-on actions. Attackers can read private role system prompts configured for the device, inject or overwrite conversation history, trigger LLM, STT, and TTS calls that bill against the owner's provider credentials, and modify stored device metadata.

Root Cause

The root cause is missing authentication on the OTA token issuance path. The implementation treats MAC address presentation as sufficient proof of device identity. MAC addresses are neither secret nor unforgeable, so the server effectively hands valid tokens to any caller. See the DeviceAuthService source and the DeviceController handler for the issuance logic.

Attack Vector

Exploitation is remote and network-based. The attacker needs network reachability to the server and knowledge or guessing of a target device MAC address. The attacker issues an HTTP request to /api/device/ota with a chosen MAC, extracts the returned WebSocket token, then connects to the device WebSocket endpoint using that token. From there the attacker interacts with the backend as the impersonated device.

Technical write-ups of the issuance flow are available in the HackMD analysis and the VulnCheck advisory.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-111623

Indicators of Compromise

  • Unexpected HTTP requests to /api/device/ota from source IPs outside the device fleet's known network ranges.
  • WebSocket sessions originating from the same device MAC concurrently from multiple IPs or geographies.
  • Spikes in LLM, STT, or TTS billing without corresponding growth in legitimate device activity.
  • Unexplained changes to device metadata, role prompts, or conversation history records.

Detection Strategies

  • Log every /api/device/ota call with source IP, requested MAC, user-agent, and issued token identifier for retrospective correlation.
  • Alert on OTA token requests for MACs that do not match a known provisioned device inventory.
  • Correlate WebSocket session establishment events with the IP that most recently obtained the token for the same MAC.
  • Monitor downstream AI provider API usage per device and alert on rate anomalies.

Monitoring Recommendations

  • Centralize application, reverse-proxy, and WebSocket logs for the Xiaozhi server in a SIEM for cross-source correlation.
  • Baseline normal OTA request volume per device and alert on deviations.
  • Track per-device LLM, STT, and TTS call counts and tokens consumed to catch credential abuse early.

How to Mitigate CVE-2026-111623

Immediate Actions Required

  • Restrict network exposure of /api/device/ota to provisioning networks only; block public internet access where feasible.
  • Rotate any provider API keys for LLM, STT, and TTS services that may have been consumed by abusive sessions.
  • Audit device metadata, role prompts, and conversation history for unauthorized modifications.
  • Enumerate and invalidate active WebSocket tokens where feasible, forcing device re-provisioning.

Patch Information

At the time of publication, no fixed release is identified in the NVD record. The vulnerability applies to Xiaozhi-esp32-server-java through 6.1.0. Monitor the upstream GitHub repository for a security release and apply it as soon as it is published. Review the VulnCheck advisory for remediation updates.

Workarounds

  • Place /api/device/ota behind an authenticated reverse proxy that requires a provisioning secret or mutual TLS (mTLS) client certificate.
  • Enforce IP allow-listing so only provisioning subnets or VPN-connected clients can request OTA tokens.
  • Implement strict rate limiting per source IP on the OTA endpoint and on token-authenticated WebSocket connections.
  • Add server-side binding between the issued token and the originating IP, rejecting WebSocket connections from mismatched addresses.
bash
# Example nginx reverse-proxy restriction for /api/device/ota
location = /api/device/ota {
    allow 10.20.30.0/24;   # provisioning subnet
    allow 192.168.50.0/24; # internal VPN
    deny  all;

    limit_req zone=ota_zone burst=5 nodelay;
    proxy_pass http://xiaozhi_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.