Intel

AIKIDO-2026-28791

bandit is vulnerable to Denial of Service (DoS)

CVE-2026-111101Published Oct 30, 2026
October 30, 2026

87

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

do_read_chunked_data! in bandit keeps every HTTP/1.1 body chunk as its own list cell until IO.iodata_to_binary/1 joins them. The :length option of read_body/2 counts payload bytes and does not limit how many chunks make up that payload, so a body of many tiny chunks uses far more memory and CPU than its size. On a keep-alive connection, ensure_completed/1 drains an unread body through the same reader. The fix appends each chunk into a single binary while reading.

How do I fix this?

Upgrade the bandit library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and the server accepts HTTP/1.1 requests.

Package

Versions

0.1.0 - 1.13.1

Fixed in 1.14.0

Background info

bandit is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.13.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea