CVE-2026-42786 Details
Description
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion. The fragment reassembly path in 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 in lib/bandit/websocket/connection.ex appends every incoming Continuation{fin: false} frame's payload to a per-connection iolist with no cumulative size cap. The existing max_frame_size option only bounds individual frames; a peer that streams an unbounded number of continuation frames without ever setting fin=1 grows BEAM heap linearly until the OS or a supervisor kills the process. Because the accumulation happens before WebSock.handle_in/2 is called, the application has no opportunity to interpose a size check. Phoenix Channels and LiveView both run over WebSock on Bandit, so a stock Phoenix application exposes this surface as soon as it accepts socket connections. This issue affects bandit: from 0.5.0 before 1.11.0.
A denial-of-service vulnerability has been identified in the Bandit library for Elixir, specifically in versions 0.5.0 prior to 1.11.0. This vulnerability allows unauthenticated remote attackers to exhaust server memory, leading to application termination. The issue arises in the WebSocket connection handling, where incoming continuation frames are appended to a per-connection iolist without any size limit. As a result, a peer can stream an unlimited number of frames, causing the BEAM heap to grow linearly until the operating system or a supervisor kills the process. This memory accumulation occurs before the application has a chance to implement size checks, leaving standard Phoenix applications and any Plug apps with custom WebSocket handlers vulnerable by default.
Users can update to Bandit version 1.11.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 1, 2026CISA-ADP
Assessed May 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://cna.erlef.org/cves/CVE-2026-42786.html | EEF | AdvisoryBundle |
| https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667 | EEF | Source CodeVendor |
| https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p | EEF | AdvisoryExploitRemedyVendor |
| https://osv.dev/vulnerability/EEF-CVE-2026-42786 | EEF | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | EEF |
Affected Products
| Product | Versions |
|---|---|
| mtrudel bandit | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | EEF |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 2, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | New CVE Received | EEF |
Volerion