{"vuln_id":"CVE-2026-39807","aliases":["GHSA-375f-4r2h-f99j"],"description":"Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connections.\n\nBandit.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.\n\nDownstream 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.\n\nThis issue affects bandit: from 1.0.0-pre.6 before 1.11.0.","published_at":"2026-05-01T21:16:17.180000Z","modified_at":"2026-11-20T05:18:55.280000Z","first_seen_at":"2026-11-21T19:15:46.192822Z","severity":"medium","severity_source":"nvd","cvss_score":6.3,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-807"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00531,"epss_percentile":0.45798,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-39807"},"matched_alias":null,"items":[{"id":3109,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-39807: Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connectio…","summary":"Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connections.\n\nBandit.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.\n\nDownstream 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.\n\nThis issue affects bandit: from 1.0.0-pre.6 before 1.11.0.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-39807.html\nhttps://github.com/mtrudel/bandit/commit/45feea20dea8af7ffd7245271107b695c040e667\nhttps://github.com/mtrudel/bandit/commit/ff2f829326cd5dcf7335939aef9775269d881e28\nhttps://github.com/mtrudel/bandit/security/advisories/GHSA-375f-4r2h-f99j\nhttps://osv.dev/vulnerability/EEF-CVE-2026-39807\nhttps://github.com/mtrudel/bandit/security/advisories/GHSA-375f-4r2h-f99j","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39807","published_at":"2026-05-01T21:16:17.180000Z","updated_at":"2026-11-20T05:18:55.280000Z","fetched_at":"2026-11-21T19:15:31.478718Z","severity":"medium","cvss_score":6.3,"epss":0.00531,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-39807","vuln_ids":["CVE-2026-39807","GHSA-375F-4R2H-F99J"],"tags":["CWE-807"],"cluster_id":3126,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3109","html":"https://vulnwatch.ve1ve2.com/item/3109"}}]}