CVE-2026-69216
Http4s: Ember chunk parser lenience (TE.TE request smuggling)
Description
Summary
Ember's chunk decoder parses the size token leniently: it strips leading and trailing whitespace and accepts a leading + or - sign. RFC9112 §7.1 defines chunk-size = 1*HEXDIG. An intermediary that parses the chunk boundary differently (or rejects it) will disagree with Ember on request framing, enabling HTTP request smuggling (TE.TE).
Impact
Server
Request smuggling (TE.TE) when ember-server is an origin behind an intermediary that forwards the body verbatim but interprets the malformed chunk sizes differently
- Front-end security bypass: the smuggled request reaches paths the intermediary might have blocked, with attacker-chosen method and headers.
- Cache poisoning: the smuggled response is associated with the next request key in a caching proxy.
- Request queue hijack:
Client
ember-client has the same leniencies on the response path, which enables response smuggling when http4s is used as a gateway. This is less severe, as it requires a malicious or compromised upstream rather than an anonymous remote client.
Preconditions
- Unauthenticated remote attacker (server)
- ember-server as origin behind a keep-alive intermediary
- Malicious or compromised upstream (client)
- Intermediary or upstream forwards chunked bodies without re-encoding and disagrees with Ember on
+prefix,-prefix, or leading and trailing octets rather than rejecting.
Workarounds
- Intermediary strictly rejects malformed chunk sizes
- Intermediary buffers and re-encodes request bodies
References
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-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
| org.http4s » http4s-ember-core_3 | < 0.23.35>= 1.0.0-M1, < 1.0.0-M47 | 0.23.35, 1.0.0-M47 |
Blast radius
72% of the dependent artifacts (197) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 337 |
| 2 hops | 1,973 |
| 3 hops | 1,894 |
| 4 hops | 348 |
| 5 hops | 454 |
| 6 hops | 20 |
Most used dependents
- org.http4s » http4s-ember-client144 usages
- org.http4s » http4s-ember-server107 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 20261124.0621 (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
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-jrpm-956j-96jg | github.com |
| Web | http4s/http4s commit d78612a | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
