CVE-2026-69217
http4s: Ember Server Accepts Duplicate Content-Length Headers
Description
Ember's HTTP/1.1 parser accepts a request that carries two Content-Length headers with differing values, accepting the latter value. RFC 9112 §6.3 requires a recipient to respond 400 (Bad Request) and close the connection.
When an Ember server is deployed behind a intermediary that frames on a different occurrence of the header, HTTP request smuggling (CL.CL desync) is possible.
Impact
Server
The server is vulnerable to HTTP request smuggling when deployed as an origin behind an intermediary that maintains keep-alive connections and frames requests using a different Content-Length value than Ember, which uses a last-wins policy.
- Front-end security bypass: the smuggled request reaches paths the intermediary might have blocked, with attacker-chosen method and headers.
- Cross-user request hijack: a dangling smuggled prefix concatenates with the next victim's request on the shared backend socket, capturing its sensitive headers (e.g.,
CookieorAuthorization). - Cache poisoning: the smuggled response is associated with the next request key in a caching proxy.
Client
The same parser is used by the client and applies to the response path. The threat is narrower and less severe than the server:
- The upstream server (origin or intermediary) must be malicious or compromised.
- The client must be deployed as a proxy shared across multiple downstream consumers. If the misframed bytes are attached to a different downstream user's request on a pooled connection, cross-user response hijack or cache poisoning are possible.
Preconditions
- Any
EmberServerBuilderHTTP/1.1 config behind an intermediary - Unauthenticated remote attacker able to reach the intermediary
- That intermediary forwards at least two differing
Content-Lengthheaders without rejecting and frames on a different occurrence of the header - Intermediary keeps persistent upstream connections
Patches
The issue is addressed in http4s-0.23.35.
Workarounds
- Use a strictly-conformant intermediary that rejects differing
Content-Lengthwith400
Resources
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-ember-core_2.12 | < 0.23.35 | 0.23.35 |
| org.http4s » http4s-ember-core_2.13 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-ember-core_3 | < 0.23.35>= 1.0.0-M2, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
71% of the dependent artifacts (194) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 337 |
| 2 hops | 1,975 |
| 3 hops | 1,895 |
| 4 hops | 353 |
| 5 hops | 454 |
| 6 hops | 20 |
Most used dependents
- org.http4s » http4s-ember-client146 usages
- org.http4s » http4s-ember-server108 usages
- io.chrisdavenport » http4s-grpc23 usages
- io.github.pityka » tasks-core17 usages
- io.chrisdavenport » http4s-grpc-google-common-protos17 usages
- es.weso » srdfjena17 usages
- com.rlemaitre » pillars-core10 usages
- io.funktional » pillars-core9 usages
- com.github.agourlay » cornichon-core7 usages
- com.rlemaitre » pillars-core-tests7 usages
- io.funktional » pillars-core-tests7 usages
- org.typelevel » otel4s-sdk-exporter5 usages
- org.typelevel » otel4s-sdk-exporter-common5 usages
- com.disneystreaming.smithy4s » smithy4s-tests4 usages
- com.avast » sst-http4s-client-ember4 usages
Computed from the dependency graph of build 20261204.0837 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-69217 | nvd.nist.gov |
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-p83c-4wj9-p6w9 | github.com |
| Web | http4s/http4s commit 24e8d34 | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
