{"id":"EEF-CVE-2026-49753","summary":"HTTP response smuggling in Mint HTTP/1 client via lenient Content-Length parsing","details":"## 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 \u003e= 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.","aliases":["CVE-2026-49753","GHSA-mjqx-c6f6-7rc2"],"modified":"2026-11-25T17:23:13.513650028Z","published":"2026-06-02T14:15:17.078Z","database_specific":{"capec_ids":["CAPEC-273"],"cpe_ids":["cpe:2.3:a:elixir-mint:mint:*:*:*:*:*:*:*:*"],"cwe_ids":["CWE-444"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json"},"references":[{"type":"ADVISORY","url":"https://github.com/elixir-mint/mint/security/advisories/GHSA-mjqx-c6f6-7rc2"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-49753.html"},{"type":"WEB","url":"https://github.com/elixir-mint/mint/commit/65e0e86d799a6d3b08e4372fccdd9747535e0dd6"},{"type":"FIX","url":"https://github.com/elixir-mint/mint/commit/47e48027480228e4e32a0b4df39db497b4804921"},{"type":"PACKAGE","url":"https://hex.pm/packages/mint"}],"affected":[{"package":{"name":"mint","ecosystem":"Hex","purl":"pkg:hex/mint"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.1.0"},{"fixed":"1.9.0"}]}],"versions":["0.1.0","0.2.0","0.2.1","0.3.0","0.4.0","0.5.0","1.0.0","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.7.0","1.7.1","1.8.0"],"ecosystem_specific":{"program_routines":["'Elixir.Mint.HTTP1.Parse':content_length_header/1"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Mint.HTTP1.Parse'"],"program_files":["lib/mint/http1/parse.ex"]},"database_specific":{"modules":["'Elixir.Mint.HTTP1.Parse'"],"program_files":["lib/mint/http1/parse.ex"],"program_routines":["'Elixir.Mint.HTTP1.Parse':content_length_header/1"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","source":"https://cna.erlef.org/osv/EEF-CVE-2026-49753.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/elixir-mint/mint","events":[{"introduced":"65e0e86d799a6d3b08e4372fccdd9747535e0dd6"},{"fixed":"47e48027480228e4e32a0b4df39db497b4804921"}]}],"versions":["v1.8.0","v1.7.1","v1.7.0","v1.6.2","v1.6.1","v1.6.0","v1.5.2","v1.5.1","v1.5.0","v1.4.2","v1.4.1","v1.4.0","v1.3.0","v1.2.1","v1.2.0","v1.1.0","v1.0.0","v0.5.0","v0.4.0","v0.2.1","v0.2.0","v0.1.0"],"database_specific":{"modules":["'Elixir.Mint.HTTP1.Parse'"],"program_files":["lib/mint/http1/parse.ex"],"program_routines":["'Elixir.Mint.HTTP1.Parse':content_length_header/1"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","source":"https://cna.erlef.org/osv/EEF-CVE-2026-49753.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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","source":"CNA"}],"credits":[{"name":"Peter Ullrich","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"ANALYST"},{"name":"Eric Meadows-Jönsson","type":"REMEDIATION_DEVELOPER"}]}