8.7
HIGH CVSS 4.0
CVE-2026-42786
WebSocket fragmented message reassembly unbounded in bandit
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 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.1 before 1.11.0.

INFO

Published Date :

May 1, 2026, 9:16 p.m.

Last Modified :

Nov. 20, 2026, 4:17 a.m.

Remotely Exploit :

Yes !

Source :

6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Affected Products

The following products are affected by CVE-2026-42786 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mtrudel bandit
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS 4.0 HIGH 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Solution
Apply patches to Bandit to enforce limits on cumulative frame payloads.
  • Update Bandit to version 1.11.0 or later.
  • Implement payload size limits in handler.
  • Monitor resource usage closely.
  • Restart affected services.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-42786 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-42786 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-42786 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Nov. 20, 2026

    Action Type Old Value New Value
    Changed 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. 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 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.1 before 1.11.0.
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/42xxx/CVE-2026-42786.json">CVE-2026-42786</a>
    Added Reference https://cna.erlef.org/cves/CVE-2026-42786.html
    Added Reference https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667
    Added Reference https://github.com/mtrudel/bandit/commit/8909391f486d42138c5308410bc5ea49a65f4d46
    Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-42786
    Removed Reference https://cna.erlef.org/cves/CVE-2026-42786.html
    Removed Reference https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667
    Removed Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
    Removed Reference https://osv.dev/vulnerability/EEF-CVE-2026-42786
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Nov. 20, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
    Removed Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
  • CVE Translated by [email protected]

    Oct. 26, 2026

    Action Type Old Value New Value
    Added Translation Title: bandit de mtrudel, Description: Vulnerabilidad de Asignación de Recursos Sin Límites o Limitación (Throttling) en mtrudel bandit permite la denegación de servicio remota no autenticada mediante el agotamiento de la memoria. La ruta de reensamblaje de fragmentos en ’Elixir.Bandit.WebSocket.Connection’:handle_frame/3 en lib/bandit/websocket/connection.ex añade la carga útil de cada trama Continuation{fin: false} entrante a una iolist por conexión sin límite de tamaño acumulativo. La opción existente max_frame_size solo limita las tramas individuales; un par que transmite un número ilimitado de tramas de continuación sin establecer nunca fin=1 hace crecer el heap de BEAM linealmente hasta que el sistema operativo o un supervisor mata el proceso. Debido a que la acumulación ocurre antes de que se llame a WebSock.handle_in/2, la aplicación no tiene oportunidad de interponer una verificación de tamaño. Phoenix Channels y LiveView se ejecutan sobre WebSock en Bandit, por lo que una aplicación Phoenix estándar expone esta superficie tan pronto como acepta conexiones de socket. Este problema afecta a bandit: desde 0.5.0 antes de 1.11.0.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-42786', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-02T01:15:58.376139Z'}
  • CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/mtrudel/bandit', 'vendor': 'mtrudel', 'modules': ["'Elixir.Bandit.WebSocket.Connection'"], 'product': 'bandit', 'versions': [{'status': 'affected', 'version': '0.5.0', 'lessThan': '1.11.0', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/bandit', 'packageName': 'bandit', 'programFiles': ['lib/bandit/websocket/connection.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Bandit.WebSocket.Connection':handle_frame/3"}]}, {'cpes': ['cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/mtrudel/bandit', 'vendor': 'mtrudel', 'modules': ["'Elixir.Bandit.WebSocket.Connection'"], 'product': 'bandit', 'versions': [{'status': 'affected', 'version': '8909391f486d42138c5308410bc5ea49a65f4d46', 'lessThan': '21612c7c7b1ce43eccd36d3af3a2299d23513667', 'versionType': 'git'}], 'packageURL': 'pkg:github/mtrudel/bandit', 'packageName': 'mtrudel/bandit', 'programFiles': ['lib/bandit/websocket/connection.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Bandit.WebSocket.Connection':handle_frame/3"}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 02, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
  • New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

    May. 01, 2026

    Action Type Old Value New Value
    Added 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.
    Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-770
    Added Reference https://cna.erlef.org/cves/CVE-2026-42786.html
    Added Reference https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667
    Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p
    Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-42786
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.