Skip to main content
Vulnerability Database/CVE-2026-94194

CVE-2026-94194: Elixir Mint HTTP Request Smuggling Flaw

CVE-2026-94194 is an HTTP request smuggling vulnerability in elixir-mint that enables malicious servers to poison pooled connections. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-94194 Overview

CVE-2026-94194 is an HTTP Request/Response Smuggling vulnerability in the elixir-mint mint HTTP client library. The flaw lets a malicious HTTP/1 server desynchronize an intermediary and the Mint client on a pooled connection. Attackers can poison responses delivered to subsequent requests sharing the same connection. The issue affects mint from version 0.1.0 before 1.10.2 and is classified as [CWE-444]: Inconsistent Interpretation of HTTP Requests.

Critical Impact

A malicious upstream server can inject arbitrary HTTP responses into other clients' requests on pooled Mint connections, enabling response poisoning, cache poisoning, and credential or data theft across tenants sharing the connection pool.

Affected Products

  • elixir-mint mint versions 0.1.0 through 1.10.1
  • Elixir applications using Mint directly for HTTP/1 client connections
  • Downstream libraries that pool Mint connections through shared intermediaries

Discovery Timeline

  • 2026-09-28 - CVE-2026-94194 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-94194

Vulnerability Analysis

Mint misinterprets HTTP/1 message framing in two distinct ways that both allow response smuggling on pooled connections. The first flaw lives in message_body/1 within lib/mint/http1.ex. Mint selects chunked framing whenever chunked is the first coding in a response's Transfer-Encoding header. RFC 9112 section 6.3 requires chunked framing only when chunked is the final coding, otherwise the body runs until connection close.

For a response such as Transfer-Encoding: chunked, gzip, an RFC-compliant intermediary reads every byte up to connection close as the response body. Mint instead terminates the body at the zero-length chunk and parses the trailing bytes as the next response on the connection. An attacker-controlled upstream can craft that trailer to forge responses sent back to other clients.

The second flaw involves HTTP/1.0 responses. Mint keeps the connection open after an HTTP/1.0 response, final or 1xx, that carries Transfer-Encoding and Connection: keep-alive. RFC 9112 section 6.1 requires treating this framing as faulty and closing the connection. Mint's permissive behavior lets the attacker smuggle a second response in the same way.

Root Cause

The root cause is non-conformant parsing of HTTP/1 message framing in lib/mint/http1.ex. Mint applies chunked decoding based on coding position incorrectly and tolerates faulty HTTP/1.0 framing instead of closing the connection.

Attack Vector

Exploitation requires a malicious HTTP/1 origin server, or compromise of a legitimate upstream, that returns responses with crafted Transfer-Encoding headers or HTTP/1.0 responses carrying Transfer-Encoding and Connection: keep-alive. When Mint pools the connection behind an RFC-compliant intermediary, the attacker's smuggled bytes become the response body for the next pooled request.

text
// Patch excerpt from lib/mint/http1.ex (CVE-2026-94194 fix)
+ # RFC 9112 6.1: the framing of an HTTP/1.0 message with Transfer-Encoding is
+ # treated as faulty, so the connection is closed after it without processing the
+ # final response, and the current request fails along with the queued ones.
+ defp decode_body(:informational, %{request: request} = conn, _data, _request_ref, responses)
+      when request.version < {1, 1} and request.transfer_encoding != [] do
+   {conn, responses} = close_after_response(conn, responses, conn.transport.wrap_error(:closed))
+   {:ok, conn, responses}
+ end

Source: GitHub commit 2ec8b69

Detection Methods for CVE-2026-94194

Indicators of Compromise

  • HTTP/1 responses observed in transit with Transfer-Encoding headers where chunked is not the final coding, for example Transfer-Encoding: chunked, gzip
  • HTTP/1.0 responses that carry both Transfer-Encoding and Connection: keep-alive headers
  • Mismatched response bodies or unexpected HTTP status lines appearing mid-stream on pooled Mint connections

Detection Strategies

  • Inventory Elixir applications and transitive dependencies for mint versions below 1.10.2 using mix deps.tree or SBOM tooling
  • Inspect reverse proxy and WAF logs for upstream responses with non-conformant Transfer-Encoding ordering or HTTP/1.0 responses advertising keep-alive with chunked framing
  • Correlate anomalous response-to-request pairings on long-lived connections through shared pools

Monitoring Recommendations

  • Enable intermediary logging that preserves raw Transfer-Encoding and HTTP version fields for upstream responses
  • Alert on unexpected content-type or body transitions within a single pooled connection session
  • Track dependency drift in CI so Mint upgrades to 1.10.2 or later are enforced across services

How to Mitigate CVE-2026-94194

Immediate Actions Required

  • Upgrade mint to version 1.10.2 or later in all Elixir applications and rebuild release artifacts
  • Audit downstream HTTP client libraries that embed Mint, such as Finch and Tesla adapters, and bump their Mint dependency
  • Restrict pooled connections to trusted upstreams until patched versions are deployed

Patch Information

The fix is published in mint1.10.2. Relevant commits include 2ec8b69, 60089586, and 8d1bbcfa. See the GitHub Security Advisory GHSA-gvrc-75rc-7gj9 and the Erlang Ecosystem Foundation CNA advisory for authoritative details.

Workarounds

  • Disable HTTP connection pooling for Mint-based clients that terminate against untrusted origins
  • Place an RFC-9112-compliant reverse proxy that normalizes or rejects malformed Transfer-Encoding headers between Mint and remote servers
  • Force HTTP/1.1 and reject HTTP/1.0 responses with Transfer-Encoding headers at the ingress layer
bash
# Pin mint to the patched release in mix.exs
{:mint, "~> 1.10.2"}

# Then refresh and verify the resolved version
mix deps.update mint
mix deps | grep mint

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.