Allocation of Resources Without Limits or Throttling Affecting bandit package, versions >=0.3.1 <1.14.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-BANDIT-22149921
  • published3 Nov 2026
  • disclosed28 Oct 2026
  • creditneilberkman

Introduced: 28 Oct 2026

NewCVE-2026-116078  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade bandit to version 1.14.1 or higher.

Overview

bandit is a HTTP server for Plug and WebSock apps.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the HTTP/2 request body reader of mtrudel bandit, an unauthenticated remote attacker can exhaust server memory via a request body sent as many 1-byte DATA frames.do_read_data/5 in lib/bandit/http2/stream.ex keeps every DATA frame payload as its own list element until the read returns. The :length option of read_body/2 counts body bytes, not frames, so a body of 1-byte frames costs a list cell and a binary term per byte. Interleaving the frames across up to 500 concurrent streams per connection keeps each stream consuming its frames as they arrive; in the reporter's test, 100 streams held 25 to 40 MiB of stream process memory for 5 MB sent. Only routes whose Plug reads the request body are affected, which includes any route behind Plug.Parsers.

CVSS Base Scores

version 4.0
version 3.1