Improper Cleanup on Thrown Exception Affecting bandit package, versions >=1.9.0 <1.14.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.63% (51st 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-21755438
  • published27 Oct 2026
  • disclosed26 Oct 2026
  • creditUnknown

Introduced: 26 Oct 2026

NewCVE-2026-111103  (opens in a new tab)
CWE-460  (opens in a new tab)

How to fix?

Upgrade bandit to version 1.14.0 or higher.

Overview

bandit is a HTTP server for Plug and WebSock apps.

Affected versions of this package are vulnerable to Improper Cleanup on Thrown Exception via the HTTP/2 handler of mtrudel bandit allows an unauthenticated remote attacker to bypass per-connection resource limits via a single TCP write that carries several frames, one of which raises a stream error. When a stream error occurs mid-chunk, Bandit.HTTP2.Handler.handle_data/3 sends RST_STREAM and rolls back connection state-including stream counts, rapid-reset timestamps, and stream IDs-to before the write while leaving previously opened streams running. By appending an invalid frame to each batch of requests, an attacker causes Bandit to forget active streams, completely bypassing limits like max_concurrent_streams and the rapid-reset limiter.

CVSS Base Scores

version 4.0
version 3.1