{"id":"CVE-2026-48861","aliases":["CVE-2026-48861","GHSA-2pg6-44cx-c49v","EEF-CVE-2026-48861"],"related":[],"kind":"vulnerability","state":"published","title":"CRLF injection in HTTP/1 request line via unvalidated method in Mint","summary":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in elixir-mint Mint allows HTTP Request Splitting and HTTP Request Smuggling.\n\nIn lib/mint/http1/request.ex, the encode_request_line/2 function splices the caller-supplied method and target arguments directly into the HTTP/1 request line without any character validation: [method, ?\\s, target, \" HTTP/1.1\\r\\n\"]. An application that forwards attacker-controlled input as the HTTP method or target to Mint.HTTP.request/5 is therefore exposed to request-line CRLF injection: the attacker can terminate the request line early, inject arbitrary headers, and smuggle an entirely separate pipelined HTTP request onto the same TCP connection.\n\nMint 1.7.0 introduced validate_request_target/2, which rejects CRLF and other control characters in the target by default and closes the path/query vector unless the caller opts out via skip_target_validation: true. The method field remains unvalidated, so the method-based injection is exploitable under the default Mint configuration on all versions.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in elixir-mint Mint allows HTTP Request Splitting and HTTP Request Smuggling.\n\nIn lib/mint/http1/request.ex, the encode_request_line/2 function splices the caller-supplied method and target arguments directly into the HTTP/1 request line without any character validation: [method, ?\\s, target, \" HTTP/1.1\\r\\n\"]. An application that forwards attacker-controlled input as the HTTP method or target to Mint.HTTP.request/5 is therefore exposed to request-line CRLF injection: the attacker can terminate the request line early, inject arbitrary headers, and smuggle an entirely separate pipelined HTTP request onto the same TCP connection.\n\nMint 1.7.0 introduced validate_request_target/2, which rejects CRLF and other control characters in the target by default and closes the path/query vector unless the caller opts out via skip_target_validation: true. The method field remains unvalidated, so the method-based injection is exploitable under the default Mint configuration on all versions.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nMint's HTTP/1 request encoder splices the caller-supplied `method` and `target` directly into the request line without character validation. An application that forwards attacker-controlled input as the HTTP method or the target to `Mint.HTTP.request/5` is exposed to request-line CRLF injection, allowing the attacker to terminate the request line early, inject arbitrary headers, and pipeline a fully attacker-chosen second request onto the same TCP connection.\n\n### Details\n\n`encode_request_line/2` in `lib/mint/http1/request.ex` writes `method` and `target` to the wire verbatim. `encode_headers/1` validates header names and values, but there is no equivalent `validate_method!/1`.\n\nMint 1.7.0 added `validate_request_target/2`, which rejects CRLF and other control characters in `target` by default and closes the path/query vector. The `method` field remains unvalidated, so a CRLF-bearing method such as `\"GET / HTTP/1.1\\r\\nX-Smuggled: 1\\r\\nGET /admin\"` is accepted and written to the socket as-is. Bytes after the first `\\r\\n` are interpreted by the peer as an injected header, or, with a second `\\r\\n`, as an additional pipelined request.\n\n### PoC\n\n1. Stand up a Mint-using gateway/proxy that calls `Mint.HTTP.request(conn, method, \"/\", [], nil)` with `method` taken from caller input.\n2. Send a request whose forwarded method is `\"GET / HTTP/1.1\\r\\nX-Smuggled-Header: pwned\\r\\nGET /admin/delete-everything\"`.\n3. Observe the bytes received by the upstream server: the smuggled header line and the second request line appear verbatim in the outbound stream.\n\n### Impact\n\nCRLF injection / HTTP request smuggling in the HTTP/1 client encoder, exploitable under default configuration whenever an application passes caller-influenced input as the HTTP method. An attacker who controls the method can inject arbitrary outbound headers (forged `Host`, `Authorization`, cache-poisoning headers) and smuggle additional, fully attacker-chosen requests to the upstream server over the same connection, potentially reaching endpoints the legitimate caller never intended to invoke.\n\n## Resources\n\n* Introduction commit: https://github.com/elixir-mint/mint/commit/8db1acff30b6a9433762c18b1e1f891b8c1f74f7\n* Patch commit: https://github.com/elixir-mint/mint/commit/fad091454cbb7449b19edb8e1fee12ca7cf28c3a","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in elixir-mint Mint allows HTTP Request Splitting and HTTP Request Smuggling.\n\nIn `lib/mint/http1/request.ex`, the `encode_request_line/2` function splices the caller-supplied `method` and `target` arguments directly into the HTTP/1 request line without any character validation: `[method, ?\\s, target, \" HTTP/1.1\\r\\n\"]`. An application that forwards attacker-controlled input as the HTTP method or target to `Mint.HTTP.request/5` is therefore exposed to request-line CRLF injection: the attacker can terminate the request line early, inject arbitrary headers, and smuggle an entirely separate pipelined HTTP request onto the same TCP connection.\n\nMint 1.7.0 introduced `validate_request_target/2`, which rejects CRLF and other control characters in the `target` by default and closes the path/query vector unless the caller opts out via `skip_target_validation: true`. The `method` field remains unvalidated, so the method-based injection is exploitable under the default Mint configuration on all versions.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","format":"markdown","source":"eef"},{"lang":"es","text":"Neutralización incorrecta de secuencias CRLF ('Inyección CRLF') vulnerabilidad en elixir-mint Mint permite la división de solicitudes HTTP (HTTP Request Splitting) y el contrabando de solicitudes HTTP (HTTP Request Smuggling).\n\nEn lib/mint/http1/request.ex, la función encode_request_line/2 inserta los argumentos de método y objetivo proporcionados por el llamador directamente en la línea de solicitud HTTP/1 sin ninguna validación de caracteres: [method, ?\\s, target, \" HTTP/1.1\\r\\n\"]. Una aplicación que reenvía entrada controlada por el atacante como el método HTTP o el objetivo a Mint.HTTP.request/5 está, por lo tanto, expuesta a la inyección CRLF en la línea de solicitud: el atacante puede terminar la línea de solicitud prematuramente, inyectar encabezados arbitrarios y contrabandear una solicitud HTTP canalizada (pipelined) completamente separada en la misma conexión TCP.\n\nMint 1.7.0 introdujo validate_request_target/2, que rechaza CRLF y otros caracteres de control en el objetivo por defecto y cierra el vector de ruta/consulta a menos que el llamador opte por no hacerlo a través de skip_target_validation: true. El campo del método permanece sin validar, por lo que la inyección basada en el método es explotable bajo la configuración predeterminada de Mint en todas las versiones.\n\nEste problema afecta a mint: desde 0.1.0 antes de 1.9.0.","source":"nvd"}],"published":"2026-06-02T14:15:09.015Z","modified":"2026-11-26T17:23:04.429Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","score":2.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N"}],"cwes":["CWE-93"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"1.9.0","status":"affected"}],"vendor":"elixir-mint","product":"mint","package":"mint","cpe":"cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-mint/mint","source":"cvelist"},{"ranges":[{"type":"git","introduced":"8db1acff30b6a9433762c18b1e1f891b8c1f74f7","fixed":"fad091454cbb7449b19edb8e1fee12ca7cf28c3a","status":"affected"}],"vendor":"elixir-mint","product":"mint","package":"elixir-mint/mint","cpe":"cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*","repo":"https://github.com/elixir-mint/mint","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.0"}],"ecosystem":"Hex","package":"mint","purl":"pkg:hex/mint","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"1.9.0"}],"ecosystem":"Hex","package":"mint","purl":"pkg:hex/mint","source":"eef"},{"ranges":[{"type":"git","introduced":"8db1acff30b6a9433762c18b1e1f891b8c1f74f7","status":"affected","fixed":"fad091454cbb7449b19edb8e1fee12ca7cf28c3a"}],"repo":"https://github.com/elixir-mint/mint","source":"eef"}],"references":[{"url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-2pg6-44cx-c49v","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-48861.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-48861","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elixir-mint/mint/commit/8db1acff30b6a9433762c18b1e1f891b8c1f74f7","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-mint/mint/commit/fad091454cbb7449b19edb8e1fee12ca7cf28c3a","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48861","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/elixir-mint/mint","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/mint","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Eric Meadows-Jönsson"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-02T18:11:46.297Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48861","url":"https://www.cve.org/CVERecord?id=CVE-2026-48861","licence":"CVE Terms of Use","modified":"2026-11-20T08:30:46.407Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2pg6-44cx-c49v","url":"https://github.com/advisories/GHSA-2pg6-44cx-c49v","licence":"CC-BY-4.0","modified":"2026-07-09T23:30:10.333Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-48861","url":"https://osv.dev/vulnerability/EEF-CVE-2026-48861","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:04.429Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48861","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48861","licence":"Public domain","modified":"2026-11-20T09:20:11.780Z"}],"updatedAt":"2026-11-26T17:37:06.437Z","epss":{"score":0.00265,"percentile":0.1965,"date":"2026-12-01T12:00:22.000Z"}}