CVE-2026-39804: Bandit's unbounded WebSocket inflate causes BEAM OOM with a single frame
Affects banditSource GCVE Database
Not known to be exploited · CVSS 8.2 High : upgrade to 1.11.0 soon.
Data as of 27 Oct 2026, 02:39 UTC
- Patch
- Available – fixed in 1.11.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade bandit to 1.11.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Hexbandit | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Bandit to version 1.11.0 or later, where the vulnerability is fixed by enforcing a maximum output size during decompression. If upgrading is not immediately possible, avoid enabling permessage-deflate compression on WebSocket connections. Note that Phoenix and LiveView default to compression disabled, so no action is needed if those defaults are unchanged.
Description
CVE-2026-39804 is a denial-of-service vulnerability in Bandit's WebSocket permessage-deflate implementation. When enabled, an unauthenticated attacker can send a single compressed WebSocket frame that decompresses to a very large size, causing the BEAM virtual machine to exhaust memory and potentially crash. This occurs because the decompression step lacks an output size limit, allowing a small compressed payload to inflate to multiple gigabytes in memory. The vulnerability affects Bandit versions from 0.5.8 up to but not including 1.11.0. Default Phoenix and LiveView apps are not affected as they disable compression by default. The issue requires explicit opt-in to compression on the WebSocket upgrade. A fix is available in Bandit 1.11.0.
References
- github.com/mtrudel/bandit/security/advisories/GHSA-frh3-6pv6-rc8j (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-39804 (opens in a new tab)
- github.com/mtrudel/bandit/commit/8156921a51e684a951221da7bc30a70a022f722e (opens in a new tab)
- cna.erlef.org/cves/CVE-2026-39804.html (opens in a new tab)
- github.com/mtrudel/bandit (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-39804 (opens in a new tab)