{"id":"CVE-2026-49753","aliases":["CVE-2026-49753","GHSA-mjqx-c6f6-7rc2","EEF-CVE-2026-49753"],"related":[],"kind":"vulnerability","state":"published","title":"HTTP response smuggling in Mint HTTP/1 client via lenient Content-Length parsing","summary":"Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in elixir-mint Mint allows attacker-controlled HTTP/1 servers to desynchronise response framing on shared connections.\n\nMint's HTTP/1 Content-Length parser, Mint.HTTP1.Parse.content_length_header/1 in lib/mint/http1/parse.ex, parses the header value with Integer.parse/1, which accepts an optional + or - sign prefix. The length >= 0 guard rejects negatives, but inputs such as +0 or +123 are returned as valid lengths. RFC 7230 specifies Content-Length = 1*DIGIT, with no sign character permitted.\n\nA fronting proxy or load balancer that strictly enforces the grammar will reject or reframe a header like Content-Length: +0, while Mint silently treats it as zero. When Mint reuses the socket (keep-alive, pipelining, or any pooled connection shared across requesters), the parser disagreement is a response-smuggling primitive: the proxy delimits the body one way, Mint another, and bytes from one response get attributed to the next. Where the same Mint connection is shared across trust boundaries, an attacker-controlled upstream can leak bytes into a different consumer's response stream.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in elixir-mint Mint allows attacker-controlled HTTP/1 servers to desynchronise response framing on shared connections.\n\nMint's HTTP/1 Content-Length parser, Mint.HTTP1.Parse.content_length_header/1 in lib/mint/http1/parse.ex, parses the header value with Integer.parse/1, which accepts an optional + or - sign prefix. The length >= 0 guard rejects negatives, but inputs such as +0 or +123 are returned as valid lengths. RFC 7230 specifies Content-Length = 1*DIGIT, with no sign character permitted.\n\nA fronting proxy or load balancer that strictly enforces the grammar will reject or reframe a header like Content-Length: +0, while Mint silently treats it as zero. When Mint reuses the socket (keep-alive, pipelining, or any pooled connection shared across requesters), the parser disagreement is a response-smuggling primitive: the proxy delimits the body one way, Mint another, and bytes from one response get attributed to the next. Where the same Mint connection is shared across trust boundaries, an attacker-controlled upstream can leak bytes into a different consumer's response stream.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nMint's HTTP/1 client accepts `Content-Length` header values with a leading `+` sign (e.g. `+0`, `+123`), which RFC 7230 forbids (`Content-Length = 1*DIGIT`). On a connection shared with a strict fronting proxy or load balancer, this parser disagreement is a response-smuggling primitive: the proxy frames the body one way, Mint frames it another, and bytes meant for one response leak into the next consumer's response stream.\n\n### Details\n\n`'Elixir.Mint.HTTP1.Parse':content_length_header/1` in `lib/mint/http1/parse.ex` parses the header value with `Integer.parse/1`. By design, `Integer.parse/1` accepts an optional `+` or `-` sign prefix. The `length >= 0` guard rules out negatives, but inputs such as `\"+0\"`, `\"+123\"`, or `\"+1\"` pass through and are returned as valid lengths.\n\nA strict proxy or load balancer rejects or reframes `Content-Length: +0\\r\\n`, while Mint silently treats it as `0`. When Mint reuses the socket (keep-alive, pipelining, or any pooled connection) and the connection is shared with a proxy that frames the same bytes differently, trailing bytes the proxy attributes to response N are attributed by Mint to response N+1. Across trust boundaries (shared pools, multi-tenant fronting) this enables response smuggling.\n\n### PoC\n\n1. Stand up a raw TCP server that returns `HTTP/1.1 200 OK\\r\\nContent-Length: +0\\r\\nConnection: keep-alive\\r\\n\\r\\n<smuggled bytes>`.\n2. Connect a Mint HTTP/1 client to the server and issue a request.\n3. Observe that Mint reports the response as status 200 with `Content-Length: \"+0\"` and an empty body, leaving the smuggled bytes sitting in the socket buffer for the next response.\n\n### Impact\n\nResponse-smuggling / request-response desync primitive in Mint's HTTP/1 client parser. Anyone using Mint (directly or via Finch, Tesla's Mint adapter, Req, etc.) to talk through a shared or pooled connection where a fronting proxy enforces RFC 7230 strictly while Mint does not is exposed. The attacker is the response producer (a malicious or compromised upstream, or anything that can inject bytes into a shared origin response); exploitation into a cross-request data leak additionally requires the deployment to share a Mint connection across trust boundaries.\n\n## Resources\n\n* Introduction commit: https://github.com/elixir-mint/mint/commit/65e0e86d799a6d3b08e4372fccdd9747535e0dd6\n* Patch commit: https://github.com/elixir-mint/mint/commit/47e48027480228e4e32a0b4df39db497b4804921","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nInconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') vulnerability in elixir-mint Mint allows attacker-controlled HTTP/1 servers to desynchronise response framing on shared connections.\n\nMint's HTTP/1 `Content-Length` parser, `Mint.HTTP1.Parse.content_length_header/1` in `lib/mint/http1/parse.ex`, parses the header value with `Integer.parse/1`, which accepts an optional `+` or `-` sign prefix. The `length >= 0` guard rejects negatives, but inputs such as `+0` or `+123` are returned as valid lengths. RFC 7230 specifies `Content-Length = 1*DIGIT`, with no sign character permitted.\n\nA fronting proxy or load balancer that strictly enforces the grammar will reject or reframe a header like `Content-Length: +0`, while Mint silently treats it as zero. When Mint reuses the socket (keep-alive, pipelining, or any pooled connection shared across requesters), the parser disagreement is a response-smuggling primitive: the proxy delimits the body one way, Mint another, and bytes from one response get attributed to the next. Where the same Mint connection is shared across trust boundaries, an attacker-controlled upstream can leak bytes into a different consumer's response stream.\n\nThis issue affects mint: from 0.1.0 before 1.9.0.","format":"markdown","source":"eef"},{"lang":"es","text":"Una vulnerabilidad de 'Interpretación inconsistente de solicitudes HTTP' ('Contrabando de Solicitudes/Respuestas HTTP') en elixir-mint Mint permite a servidores HTTP/1 controlados por el atacante desincronizar el enmarcado de respuestas en conexiones compartidas.\n\nEl analizador Content-Length HTTP/1 de Mint, Mint.HTTP1.Parse.content_length_header/1 en lib/mint/http1/parse.ex, analiza el valor del encabezado con Integer.parse/1, que acepta un prefijo de signo + o - opcional. La guarda length >= 0 rechaza los negativos, pero entradas como +0 o +123 se devuelven como longitudes válidas. RFC 7230 especifica Content-Length = 1DIGIT, sin permitir ningún carácter de signo.\n\nUn proxy frontal o balanceador de carga que aplica estrictamente la gramática rechazará o reenmarcará un encabezado como Content-Length: +0, mientras que Mint lo trata silenciosamente como cero. Cuando Mint reutiliza el socket (keep-alive, pipelining, o cualquier conexión agrupada compartida entre solicitantes), el desacuerdo del analizador es una primitiva de contrabando de respuestas: el proxy delimita el cuerpo de una manera, Mint de otra, y los bytes de una respuesta se atribuyen a la siguiente. Donde la misma conexión de Mint se comparte a través de límites de confianza, un upstream controlado por el atacante puede filtrar bytes en el flujo de respuesta de un consumidor diferente.\n\nEste problema afecta a mint: desde 0.1.0 antes de 1.9.0.","source":"nvd"}],"published":"2026-06-02T14:15:17.078Z","modified":"2026-11-25T17:23:13.513Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N"}],"cwes":["CWE-444"],"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":"65e0e86d799a6d3b08e4372fccdd9747535e0dd6","fixed":"47e48027480228e4e32a0b4df39db497b4804921","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":"65e0e86d799a6d3b08e4372fccdd9747535e0dd6","status":"affected","fixed":"47e48027480228e4e32a0b4df39db497b4804921"}],"repo":"https://github.com/elixir-mint/mint","source":"eef"}],"references":[{"url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-mjqx-c6f6-7rc2","tags":["advisory","exploit","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-49753.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-49753","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/elixir-mint/mint/commit/65e0e86d799a6d3b08e4372fccdd9747535e0dd6","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/elixir-mint/mint/commit/47e48027480228e4e32a0b4df39db497b4804921","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49753","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:06:41.525Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49753","url":"https://www.cve.org/CVERecord?id=CVE-2026-49753","licence":"CVE Terms of Use","modified":"2026-11-20T08:35:09.318Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mjqx-c6f6-7rc2","url":"https://github.com/advisories/GHSA-mjqx-c6f6-7rc2","licence":"CC-BY-4.0","modified":"2026-07-09T23:30:10.132Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-49753","url":"https://osv.dev/vulnerability/EEF-CVE-2026-49753","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:13.513Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49753","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49753","licence":"Public domain","modified":"2026-11-20T09:20:12.157Z"}],"updatedAt":"2026-11-25T22:59:23.579Z","epss":{"score":0.00524,"percentile":0.3784,"date":"2026-11-30T12:00:22.000Z"}}