Reliance on Untrusted Inputs in a Security Decision Affecting bandit package, versions >=1.0.0 <1.11.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (5th 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-16347191
  • published3 May 2026
  • disclosed1 May 2026
  • creditPJUllrich

Introduced: 1 May 2026

NewCVE-2026-39807  (opens in a new tab)
CWE-807  (opens in a new tab)

How to fix?

Upgrade bandit to version 1.11.0 or higher.

Overview

bandit is a HTTP server for Plug and WebSock apps.

Affected versions of this package are vulnerable to Reliance on Untrusted Inputs in a Security Decision via the determine_scheme logic in Bandit.Pipeline. An attacker can make the application report an attacker-chosen scheme value by sending an absolute-form HTTP/1.1 request target or HTTP/2 :scheme header that disagrees with the actual transport. This can cause downstream code to treat an insecure request as https or a secure request as http, breaking URL generation, redirects, and any application logic that relies on the connection scheme.

CVSS Base Scores

version 4.0
version 3.1