CVE-2026-39807
Full vulnerability record from the local CVENow database.
Description
Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connections. 'Elixir.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 before 1.11.0.
View original CVE JSON
{
"id": "CVE-2026-39807",
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"published": "2026-05-01T21:16:17.180",
"lastModified": "2026-10-26T21:10:00.170",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Reliance on Untrusted Inputs in a Security Decision vulnerability in mtrudel bandit allows unauthenticated transport-state spoofing on plaintext HTTP connections.\n\n'Elixir.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.\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 before 1.11.0."
},
{
"lang": "es",
"value": "Una vulnerabilidad de Confianza en Entradas No Confiables en una Decisión de Seguridad en mtrudel bandit permite la suplantación de estado de transporte no autenticada en conexiones HTTP de texto plano.\n\n’Elixir.Bandit.Pipeline’:determine_scheme/2 en lib/bandit/pipeline.ex devuelve el esquema URI proporcionado por el cliente textualmente, ignorando el indicador secure? del transporte. Los objetivos de solicitud de formulario absoluto HTTP/1.1 (p. ej., GET https://victim/path HTTP/1.1) y el pseudo-encabezado :scheme de HTTP/2 son ambas cadenas controladas por el atacante que fluyen a través de esta función. Sobre una conexión TCP de texto plano, un cliente puede declarar https y Bandit establecerá conn.scheme = :https incluso si no se negoció TLS.\n\nLos consumidores de Plug posteriores que se ramifican en conn.scheme son engañados silenciosamente: la rama ya segura de Plug.SSL omite su redirección de HTTP a HTTPS, las cookies emitidas con secure: true se envían en texto plano, los registros de auditoría registran las solicitudes como si hubieran llegado a través de HTTPS, y la restricción de CSRF/SameSite puede tomar decisiones incorrectas.\n\nEste problema afecta a bandit: desde 1.0.0 antes de 1.11.0."
}
],
"affected": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"affectedData": [
{
"vendor": "mtrudel",
"product": "bandit",
"defaultStatus": "unaffected",
"collectionURL": "https://repo.hex.pm",
"packageName": "bandit",
"cpes": [
"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.Bandit.Pipeline'"
],
"programFiles": [
"lib/bandit/pipeline.ex"
],
"programRoutines": [
{
"name": "'Elixir.Bandit.Pipeline':determine_scheme/2"
}
],
"repo": "https://github.com/mtrudel/bandit",
"packageURL": "pkg:hex/bandit",
"versions": [
{
"version": "1.0.0",
"lessThan": "1.11.0",
"versionType": "semver",
"status": "affected"
}
]
},
{
"vendor": "mtrudel",
"product": "bandit",
"defaultStatus": "unaffected",
"collectionURL": "https://github.com",
"packageName": "mtrudel/bandit",
"cpes": [
"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
],
"modules": [
"'Elixir.Bandit.Pipeline'"
],
"programFiles": [
"lib/bandit/pipeline.ex"
],
"programRoutines": [
{
"name": "'Elixir.Bandit.Pipeline':determine_scheme/2"
}
],
"repo": "https://github.com/mtrudel/bandit",
"packageURL": "pkg:github/mtrudel/bandit",
"versions": [
{
"version": "ff2f829326cd5dcf7335939aef9775269d881e28",
"lessThan": "45feea20dea8af7ffd7245271107b695c040e667",
"versionType": "git",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV40": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary",
"cvssData": {
"version": "4.0",
"vectorString": "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",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"confidentialityRequirement": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"availabilityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED"
}
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-05-02T01:17:52.498343Z",
"id": "CVE-2026-39807",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-807"
}
]
}
],
"references": [
{
"url": "https://cna.erlef.org/cves/CVE-2026-39807.html",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/commit/45feea20dea8af7ffd7245271107b695c040e667",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-375f-4r2h-f99j",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-39807",
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
},
{
"url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-375f-4r2h-f99j",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}