{"id":"CVE-2026-105660","revision":null,"records":[{"revision":"075a1496d46e4061860f0bc19c681359","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-105660","aliases":[],"title":"Unvalidated HTTP/1 request-target authority lets a client choose conn.host and conn.port in Bandit","description":"Improper Validation of Syntactic Correctness of Input vulnerability in mtrudel bandit allows an unauthenticated remote attacker to set conn.host and conn.port to values outside the RFC 3986 host grammar via the authority of an HTTP/1 absolute-form or authority-form request target. Bandit validates the Host header and answers 400 when it is malformed, but when the request target carries its own authority that authority takes precedence, as RFC 9112 requires, and Bandit.Pipeline.determine_host_and_port!/4 in lib/bandit/pipeline.ex passes it to the application unchecked. A request line such as GET http://good.example@evil.example/x HTTP/1.1 with a valid Host header yields a conn.host of good.example@evil.example, and the same path admits NUL, DEL and non-ASCII bytes, invalid IP literals and ports outside 1..65535. The HTTP/1.0 clause needs no Host header at all, and CONNECT places the unparsed port string in conn.port.\n\nApplications that build absolute URLs from conn.host, such as through Plug.Conn.request_url/1 or Phoenix URL helpers, emit links whose authority the attacker chose. Message framing is unaffected, and no CR or LF can reach conn.host.\n\nThis issue affects bandit: from 0.6.0 before 1.13.0.","state":0,"publishedAt":"2026-10-15T18:37:02.485+00:00","modifiedAt":"2026-10-16T20:02:38.784+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"bandit","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Bandit.Pipeline'\",\n                        \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket'\"\n                    ],\n                    \"packageName\": \"bandit\",\n                    \"packageURL\": \"pkg:hex/bandit\",\n                    \"product\": \"bandit\",\n                    \"programFiles\": [\n                        \"lib/bandit/pipeline.ex\",\n                        \"lib/bandit/http1/socket.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Bandit.Pipeline':determine_host_and_port!/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.Pipeline':build_conn!/6\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket':resolve_request_target!/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket':validate_request_line!/2\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/mtrudel/bandit\",\n                    \"vendor\": \"mtrudel\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"1.13.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"0.6.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"mtrudel/bandit","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Bandit.Pipeline'\",\n                        \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket'\"\n                    ],\n                    \"packageName\": \"mtrudel/bandit\",\n                    \"packageURL\": \"pkg:github/mtrudel/bandit\",\n                    \"product\": \"bandit\",\n                    \"programFiles\": [\n                        \"lib/bandit/pipeline.ex\",\n                        \"lib/bandit/http1/socket.ex\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"'Elixir.Bandit.Pipeline':determine_host_and_port!/4\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.Pipeline':build_conn!/6\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket':resolve_request_target!/2\"\n                        },\n                        {\n                            \"name\": \"'Elixir.Bandit.HTTPTransport.Bandit.HTTP1.Socket':validate_request_line!/2\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/mtrudel/bandit\",\n                    \"vendor\": \"mtrudel\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"6ea80210137b3f69caf65f67398934259dc365d0\",\n                            \"status\": \"affected\",\n                            \"version\": \"0e3edda0edf6322e9164b827c6d3ddecd080ff2e\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"severity":"MEDIUM"}],"references":["https://github.com/mtrudel/bandit/security/advisories/GHSA-v53v-9hvg-37jf","https://cna.erlef.org/cves/CVE-2026-105660.html","https://osv.dev/vulnerability/EEF-CVE-2026-105660","https://github.com/mtrudel/bandit/commit/0e3edda0edf6322e9164b827c6d3ddecd080ff2e","https://github.com/mtrudel/bandit/commit/6ea80210137b3f69caf65f67398934259dc365d0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-105660","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-105660","identifiers":["CVE-2026-105660"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-09T07:04:24.9567057+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-09T07:04:24.9567057+00:00","lastSuccessAt":"2026-11-09T07:04:25.1719597+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:25.1719634+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-24e6fde7b744113daefb8f6135035fb8a5c69c9617c9c0d40574a0376532ffd3-bac7baae6881807b2b4a9dce5cf5dd63af98be3e5c79f031b11fd288ebb8cee0","complete":true,"records":421301,"lastAttemptAt":"2026-11-09T07:02:23.0094052+00:00","lastSuccessAt":"2026-11-09T07:02:22.9878009+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:02:23.0094052+00:00","snapshotPublishedAt":"2026-11-09T06:27:21+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d2e3823747a845d48be4a8b64d8875b5","complete":false,"records":13654,"lastAttemptAt":"2026-11-09T07:16:41.1642648+00:00","lastSuccessAt":"2026-11-09T07:16:41.156+00:00","error":"14 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-09T07:16:41.156+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13677,"expectedIdentifiers":13706,"failedIdentifiers":14},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-09T07:04:24.9567057+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-09T07:04:24.9567057+00:00","lastSuccessAt":"2026-11-09T07:04:25.1726767+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:25.1726768+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-156d67f0b09643159ff4bd684ee896db","complete":true,"records":13666,"lastAttemptAt":"2026-11-09T07:04:26.2116374+00:00","lastSuccessAt":"2026-11-09T07:04:26.209+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:26.209+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13706,"expectedIdentifiers":13706,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-980593e6977a6d1b4fb1eed5a1ffe88a468736f89f0a06f710924ad59132c023","complete":true,"records":9914,"lastAttemptAt":"2026-11-09T07:04:24.7370556+00:00","lastSuccessAt":"2026-11-08T11:07:07.068788+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:24.7370556+00:00","snapshotPublishedAt":"2026-11-08T11:02:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-09T07:02:23.2085789+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:02:23.2085789+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f6d341f4320a5a0c059c28102ee651c3dd06abc87b84d2bafa4e2a823ec07d35","complete":true,"records":3056,"lastAttemptAt":"2026-11-09T07:04:24.9218065+00:00","lastSuccessAt":"2026-11-09T05:02:23.1539412+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:24.9218065+00:00","snapshotPublishedAt":"2026-11-09T04:47:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-32fcf2a839d0d91a36b31c98096d6b8a1a8cc523d64745f8a939e306130e49f2","complete":true,"records":231296,"lastAttemptAt":"2026-11-09T07:04:24.6113442+00:00","lastSuccessAt":"2026-11-09T07:04:23.2641171+00:00","error":null,"lastVerifiedAt":"2026-11-09T07:04:24.6113442+00:00","snapshotPublishedAt":"2026-11-09T06:48:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}