CVEBrief

Home / mtrudel / bandit / CVE-2026-39804

CVE-2026-39804: is it exploited, and which versions of mtrudel bandit are affected and fixed?

CVE-2026-39804 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, 12:08 UTC). Affected: bandit from 0.5.8 before 1.11.0 (GitHub advisory GHSA-frh3-6pv6-rc8j). Fixed in 1.11.0 (GitHub advisory GHSA-frh3-6pv6-rc8j). Severity: High (8.2, CVSS 4.0, from EEF).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 20, 2026, 04:29 UTC and NVD November 20, 2026, 06:04 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:08 UTC
Affected
bandit from 0.5.8 before 1.11.0
GitHub advisory GHSA-frh3-6pv6-rc8j
Fixed in
1.11.0
GitHub advisory GHSA-frh3-6pv6-rc8j
Severity
High 8.2
CVSS 4.0 from EEF
Exploit odds (EPSS)
0.72% in 30 days
higher than 55% of CVEs; FIRST, December 2, 2026

What is CVE-2026-39804?

WebSocket permessage-deflate inflate has no output-size cap in bandit

Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion when WebSocket permessage-deflate compression is enabled. Bandit.WebSocket.PerMessageDeflate.inflate/2 in lib/bandit/websocket/permessage_deflate.ex calls :zlib.inflate/2 with no output-size cap, then materializes the entire decompressed payload as a single binary via IO.iodata_to_binary/1. The websocket_options.max_frame_size option only bounds the on-the-wire (compressed) frame size, not the decompressed output. A high-ratio compressed frame (e.g. uniform data at ~1024:1 ratio) can stay well under any wire-size limit while forcing GiB-scale heap allocations in the connection process before any application code runs. An unauthenticated attacker who can open a WebSocket connection can send a single such frame to exhaust the BEAM node's memory and trigger an OOM kill. This vulnerability requires both Bandit's server-level websocket_options.compress and the per-upgrade compress: true option passed to WebSockAdapter.upgrade/4 to be enabled. Stock Phoenix and LiveView applications are not affected as they default to compress: false. This issue affects bandit: from 0.5.9 before 1.11.0.

From the CVE record by EEF, last updated November 20, 2026, 04:19 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
mtrudelbanditfrom 0.5.9 before 1.11.01.11.0
mtrudelbandit mtrudel/banditnot 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?

EcosystemPackageAffectedFixed inAdvisory
Hexbandit>= 0.5.8, < 1.11.01.11.0GHSA-frh3-6pv6-rc8j

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 7, 2026. Summary: Bandit's unbounded WebSocket inflate causes BEAM OOM with a single frame.

How severe is CVE-2026-39804?

ScoreVersionVectorSource
High 8.2CVSS 4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NEEF

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-39804 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.72% probability of exploitation activity in the next 30 days, percentile 55.2 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Is there a workaround? (from the CVE record)

Do not pass compress: true to WebSockAdapter.upgrade/4. Omitting this option (or setting it to false) prevents permessage-deflate from being negotiated, so the inflate path is never reached.

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
April 7, 2026
Published
May 1, 2026, 20:34 UTC
CVE record updated
November 20, 2026, 04:19 UTC by EEF
NVD
Deferred, last modified November 20, 2026, 05:18 UTC
Last checked
CVE list November 20, 2026, 04:29 UTC; NVD November 20, 2026, 06:04 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect bandit?

Every CVE in bandit

Questions about CVE-2026-39804

Is CVE-2026-39804 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.72% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of mtrudel bandit are affected by CVE-2026-39804?

bandit from 0.5.8 before 1.11.0, per the GitHub advisory GHSA-frh3-6pv6-rc8j. The tables above give every range the sources list.

Which version fixes CVE-2026-39804?

1.11.0, per the GitHub advisory GHSA-frh3-6pv6-rc8j. Check the vendor's advisory before you rely on it.

How severe is CVE-2026-39804?

High (8.2, CVSS 4.0, from EEF). The severity table above shows each score with its source.

Where is the official record of CVE-2026-39804?

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.