# CVE-2026-65623: Quadratic CPU blow-up reassembling fragmented WebSocket messages in Bandit

Status: published. Published: 2026-07-24. Updated: 2026-11-24.

Inefficient Algorithmic Complexity vulnerability in mtrudel bandit allows unauthenticated remote denial of service via CPU exhaustion during WebSocket fragment reassembly.

The size guard Bandit.WebSocket.Connection.oversize_message?/2 called from handle_frame/3 in lib/bandit/websocket/connection.ex appends each non-final continuation frame to a left-nested iolist and then re-measures the entire accumulated buffer with IO.iodata_length/1 on every frame. Because the buffer grows by one element per frame and is fully re-traversed each time, reassembly work is quadratic (O(n^2)) in the number of continuation frames.

The max_fragmented_message_size limit (default 8 MB) bounds total bytes but not frame count, and each frame can carry as little as one payload byte, so an attacker can send millions of tiny continuation frames using modest bandwidth to pin a CPU core for minutes to hours. Many concurrent connections can starve the whole server of CPU, denying service to legitimate users. The WebSocket read timeout does not help, because it is an idle timeout evaluated between reads and cannot preempt the synchronous reassembly work spent inside a single callback.

This issue affects bandit: from 1.11.0 before 1.12.1.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EEF) — https://github.com/mtrudel/bandit/commit/418ef7e906192a230ddba112f7a669c87b6b0e3a

## Affected products and versions

- mtrudel / bandit (bandit): ≥ 1.11.0; < 1.12.1 (affected, semver). Source: CNA: EEF
- mtrudel / bandit (mtrudel/bandit): ≥ 21612c7c7b1ce43eccd36d3af3a2299d23513667; < 418ef7e906192a230ddba112f7a669c87b6b0e3a (affected, git). Source: CNA: EEF

## Severity and prioritization

- CVSS 4.0: 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; source: CNA: EEF

- CISA KEV: No listing in collected sources

- EPSS: 0.48% as of 2026-11-23; percentile 42.27%

- SSVC: exploitation poc; automatable yes; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-407

## Exploit evidence

- exploit: https://github.com/mtrudel/bandit/security/advisories/GHSA-vg8x-66vg-5pxh (ADP: CISA-ADP)

## References

- https://github.com/mtrudel/bandit/security/advisories/GHSA-vg8x-66vg-5pxh (CNA: EEF; vendor-advisory, related)

- https://cna.erlef.org/cves/CVE-2026-65623.html (CNA: EEF; related)

- https://osv.dev/vulnerability/EEF-CVE-2026-65623 (CNA: EEF; related)

- https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667 (CNA: EEF; related)

- https://github.com/mtrudel/bandit/commit/418ef7e906192a230ddba112f7a669c87b6b0e3a (CNA: EEF; patch)

- https://github.com/mtrudel/bandit/security/advisories/GHSA-vg8x-66vg-5pxh (ADP: CISA-ADP; exploit)

## Provenance

- CNA: EEF: https://www.cve.org/CVERecord?id=CVE-2026-65623; retrieved 2026-11-24; source updated 2026-11-24

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-65623; retrieved 2026-11-24; source updated Not reported

Revision: 0fcc655d443080d1b5543a7dac62fccba96f2c8721e2ea3f18b4b2dd2939e72f

Canonical: https://y2.dev/cve/CVE-2026-65623

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.