Home / mtrudel / bandit / CVE-2026-42786
CVE-2026-42786: is it exploited, and which versions of mtrudel bandit are affected and fixed?
CVE-2026-42786 is a denial of service (resources allocated without limits) vulnerability in mtrudel bandit. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: bandit from 0.5.0 before 1.11.0 (GitHub advisory GHSA-pf94-94m9-536p). Fixed in 1.11.0 (GitHub advisory GHSA-pf94-94m9-536p). Severity: High (8.7, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 20, 2026, 03:48 UTC and NVD November 20, 2026, 05:04 UTC.
What is CVE-2026-42786?
WebSocket fragmented message reassembly unbounded in bandit
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.
From the CVE record by EEF, last updated November 20, 2026, 03:40 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| mtrudel | bandit | from 0.5.1 before 1.11.0 | 1.11.0 |
| mtrudel | bandit mtrudel/bandit | not stated |
As the CVE record by EEF states it, last updated November 20, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Hex | bandit | >= 0.5.0, < 1.11.0 | 1.11.0 | GHSA-pf94-94m9-536p |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 7, 2026. Summary: Bandit Buffers Unbounded WebSocket Continuation Frames, Allowing Unauthenticated Memory Exhaustion.
How severe is CVE-2026-42786?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-42786 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, May 2, 2026)
- EPSS
- 0.61% probability of exploitation activity in the next 30 days, percentile 50.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-770 Allocation of Resources Without Limits or Throttling
Where are the vendor advisories and references?
- Bandit buffers unbounded WebSocket continuation frames, OOM-killing the host vendor-advisory, related
- EEF CNA record for CVE-2026-42786 related
- OSV record EEF-CVE-2026-42786 related
- Introducing commit 8909391 in mtrudel/bandit related
- Fix commit 21612c7 in mtrudel/bandit patch
Who found and reported it?
- Peter Ullrich (finder)
- Jonatan Männchen / EEF (analyst)
- Mat Trudel (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 29, 2026
- Published
- May 1, 2026, 20:34 UTC
- CVE record updated
- November 20, 2026, 03:40 UTC by EEF
- NVD
- Deferred, last modified November 20, 2026, 04:17 UTC
- Last checked
- CVE list November 20, 2026, 03:48 UTC; NVD November 20, 2026, 05:04 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect bandit?
- Oct 28, 2026CVE-2026-116078 mtrudel bandit: denial of service (resources allocated without limits)
- Oct 26, 2026CVE-2026-108529 mtrudel bandit: denial of service through slow algorithm
- Oct 26, 2026CVE-2026-110499 mtrudel bandit: denial of service (resources allocated without limits)
- Oct 26, 2026CVE-2026-109584 mtrudel bandit: improper Handling of Highly Compressed Data (Data Amplification)
- Oct 26, 2026CVE-2026-111103 mtrudel bandit: improper Cleanup on Thrown Exception
- Oct 26, 2026CVE-2026-111101 mtrudel bandit: denial of service (resources allocated without limits)
- Oct 26, 2026CVE-2026-113436 mtrudel bandit: denial of service through slow algorithm
- Oct 26, 2026CVE-2026-110314 mtrudel bandit: client-Side Enforcement of Server-Side Security
Questions about CVE-2026-42786
Is CVE-2026-42786 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.61% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of mtrudel bandit are affected by CVE-2026-42786?
bandit from 0.5.0 before 1.11.0, per the GitHub advisory GHSA-pf94-94m9-536p. The tables above give every range the sources list.
Which version fixes CVE-2026-42786?
1.11.0, per the GitHub advisory GHSA-pf94-94m9-536p. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42786?
High (8.7, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42786?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.