Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-39807

MEDIUM 6.3EPSS 38%

Client-supplied URI scheme trusted without transport verification in bandit

Mitigation

  • Upgrade bandit to 1.11.0 or later.
  • Upgrade bandit to 45feea20dea8af7ffd7245271107b695c040e667 or later.

Who should check

  • Anyone running mtrudel bandit >= 1.0.0-pre.6, < 1.11.0
  • Anyone running mtrudel bandit >= ff2f829326cd5dcf7335939aef9775269d881e28, < 45feea20dea8af7ffd7245271107b695c040e667

Vulnerability facts

Affected
mtrudel bandit >= 1.0.0-pre.6, < 1.11.0; mtrudel bandit >= ff2f829326cd5dcf7335939aef9775269d881e28, < 45feea20dea8af7ffd7245271107b695c040e667
Fixed in
mtrudel bandit 1.11.0, mtrudel bandit 45feea20dea8af7ffd7245271107b695c040e667
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.52% chance of exploitation in 30 days (percentile 38, 2026-11-26)
CWE
CWE-807
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
mtrudel bandit>= 1.0.0-pre.6, < 1.11.0—cvelist
mtrudel bandit>= ff2f829326cd5dcf7335939aef9775269d881e28, < 45feea20dea8af7ffd7245271107b695c040e667—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-39807. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-39807.md
Affected: mtrudel bandit >= 1.0.0-pre.6, < 1.11.0; mtrudel bandit >= ff2f829326cd5dcf7335939aef9775269d881e28, < 45feea20dea8af7ffd7245271107b695c040e667
Fixed in: mtrudel bandit 1.11.0, mtrudel bandit 45feea20dea8af7ffd7245271107b695c040e667

Steps:
1. Search this machine and project for mtrudel bandit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-39807 being exploited?

There is no confirmed exploitation: CVE-2026-39807 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-39807?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-39807?

mtrudel bandit >= 1.0.0-pre.6, < 1.11.0; mtrudel bandit >= ff2f829326cd5dcf7335939aef9775269d881e28, < 45feea20dea8af7ffd7245271107b695c040e667.

Is there a fix for CVE-2026-39807?

Yes. Fixed in mtrudel bandit 1.11.0, mtrudel bandit 45feea20dea8af7ffd7245271107b695c040e667. Upgrade bandit to 1.11.0 or later. Upgrade bandit to 45feea20dea8af7ffd7245271107b695c040e667 or later.

How do I check if I'm affected by CVE-2026-39807?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors