Summary
CVE-2026-114213 is a resource exhaustion (denial of service) vulnerability in the WebSocket fragment reassembly of Bandit, the Elixir HTTP server. An unauthenticated remote attacker can use a single connection to consume far more memory than the configured fragmented-message limit allows. The vulnerability is rated High severity (8.7).
Technical details
- Root cause: The
max_fragmented_message_sizecheck counts payload bytes only. Each non-final continuation frame is stored as a separate list cell around its binary, and that overhead is not counted. A 1-byte frame costs about 7 bytes on the wire but 150–170 bytes in server memory (CWE-770, Allocation of Resources Without Limits or Throttling). - Trigger conditions: The application must expose a Bandit WebSocket endpoint. No authentication or user interaction is required. Ping frames sent between fragments keep the connection alive past the idle timeout.
- Attack vector: Network. The attacker sends many masked 1-byte continuation frames. The advisory gives 500,000 frames (about 3.5 MB of traffic) causing roughly 82 MB of memory use, about 150 times the configured limit.
- Impact: High availability impact. At the default 8 MB setting, one connection can hold about 1.2–1.4 GB of memory.
Affected software
- Bandit (mtrudel/bandit) >= 1.11.0 and < 1.14.0
Severity
- CVSS v4.0 base score 8.7 (High):
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. The CNA published a CVSS v4.0 vector, not a v3.1 one.
Mitigation and recommended actions
- Immediate: Upgrade Bandit to 1.14.0 or later.
- Workaround if you cannot patch: Lower the
max_fragmented_message_sizeWebSocket option (inwebsocket_options) to the largest fragmented message your application needs, for example65_536. This lowers the memory ceiling proportionally. - Check lockfiles and deployed manifests for Bandit in the affected range.

