CVE-2026-39807
published medium CVSS 4.0 · 6.3Client-supplied URI scheme trusted without transport verification in bandit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mtrudel | — | bandit1.0.0-pre.6 to < 1.11.0 · Other versions: unaffected | Affected | Not stated | EEF |
| mtrudel | — | mtrudel/banditbandit · ff2f829326cd5dcf7335939aef9775269d881e28 to < 45feea20dea8af7ffd7245271107b695c040e667 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connections. Bandit.Pipeline.determine_scheme/2 in lib/bandit/pipeline.ex returns the client-supplied URI scheme verbatim, ignoring the transport's secure? flag. HTTP/1.1 absolute-form request targets (e.g. GET https://victim/path HTTP/1.1) and the HTTP/2 :scheme pseudo-header are both attacker-controlled strings that flow through this function. Over a plaintext TCP connection, a client can declare https and Bandit will set conn.scheme = :https even though no TLS was negotiated. Downstream Plug consumers that branch on conn.scheme are silently misled: Plug.SSL's already-secure branch skips its HTTP→HTTPS redirect, cookies emitted with secure: true are sent over plaintext, audit logs record requests as having arrived over HTTPS, and CSRF/SameSite gating may make incorrect decisions. This issue affects bandit: from 1.0.0-pre.6 before 1.11.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mtrudel | bandit | 1.0.0-pre.6 to < 1.11.0 (affected · semver)Default: unaffected | EEF · cna |
| mtrudel | bandit | ff2f829326cd5dcf7335939aef9775269d881e28 to < 45feea20dea8af7ffd7245271107b695c040e667 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-807 CWE-807 Reliance on Untrusted Inputs in a Security Decision
References
5- EEF CNA record for CVE-2026-39807 https://cna.erlef.org/cves/CVE-2026-39807.html
- Fix commit 45feea2 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/45feea20dea8af7ffd7245271107b695c040e667
- Introducing commit ff2f829 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/ff2f829326cd5dcf7335939aef9775269d881e28
- Bandit trusts client-supplied scheme on plaintext connections https://github.com/mtrudel/bandit/security/advisories/GHSA-375f-4r2h-f99j
- OSV record EEF-CVE-2026-39807 https://osv.dev/vulnerability/EEF-CVE-2026-39807
Provider assertions
2EEF · cna
Client-supplied URI scheme trusted without transport verification in bandit
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 002534b2a6d0c675de06cd740e22744d6e1a3b005b74ca4c996b1b8805ce4f3b
- Ingested
- 20 Nov 2026, 04:23:26 UTC
- Source record
- Official CVE record