HIGH 8.7

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., Cookie or Authorization).
  • 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 EmberServerBuilder HTTP/1.1 config behind an intermediary
  • Unauthenticated remote attacker able to reach the intermediary
  • That intermediary forwards at least two differing Content-Length headers 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-Length with 400

Resources

Affected Maven artifacts (3)

ArtifactAffected versionsFixed 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

1affected artifacts
157affected versions
271dependent artifacts (est.)
5,034dependent versions

71% of the dependent artifacts (194) still pull an affected version in their latest release.

DepthDependent versions
Direct
337
2 hops
1,975
3 hops
1,895
4 hops
353
5 hops
454
6 hops
20

Most used dependents

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.