CVE-2026-69205
Http4s Ember Transfer-Encoding value parsing (TE.CL / TE.0 request smuggling)
Description
Summary
Ember's HTTP/1.1 header parser matches the Transfer-Encoding header value
with a case-sensitive substring test (hValue.contains("chunked")). RFC
9112 §7 requires transfer-coding names to be compared case-insensitively. A
request carrying Transfer-Encoding: Chunked (capital C) is therefore not
recognised as chunked, and Ember falls back to framing by Content-Length
(or zero if absent) while a compliant intermediary frames the same bytes by
chunked encoding. The two parsers then disagree on where the request body
ends, enabling HTTP request smuggling (TE.CL / TE.0).
The same line of code admits two further variants:
- The substring test misfires on
Transfer-Encoding: notchunked(an inverse desync — Ember treats it as chunked while a compliant intermediary rejects the unknown coding). - Header field bytes are decoded with the platform-default charset. Under
UTF-8 the wire bytes
E2 84 AAdecode to U+212A KELVIN SIGN, whichString.equalsIgnoreCaseUnicode-case-folds tok, soTransfer-Encoding: chun<U+212A>edmatcheschunkedonce the comparison is made case-insensitive without also pinning the decode to ISO-8859-1.
Impact
Server
Request smuggling when ember-server is an origin behind an intermediary that
honours Transfer-Encoding case-insensitively per RFC, forwards the header
value verbatim, and reuses keep-alive connections to the backend:
- Front-end security bypass: the smuggled request reaches paths the intermediary's ACL/auth layer would have blocked, with attacker-chosen method and headers.
- Cross-user request hijack: a partial smuggled prefix left in Ember's
connection buffer is concatenated with the next victim's request on the
same pooled backend connection, exposing its headers (e.g.
Cookie,Authorization) to the attacker. - Cache poisoning: the smuggled response is associated with the next request key in a caching proxy.
Client
ember-client shares the same HeaderP.parse on the response path, enabling
response smuggling when http4s is used as a gateway. This is less severe: 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
- Intermediary treats
Transfer-Encodingcase-insensitively (per RFC) and forwards the header value without lowercasing it - Malicious or compromised upstream (client)
Workarounds
- Intermediary fully buffers and re-encodes request bodies (e.g. nginx with
default
proxy_request_buffering on) - Intermediary normalises the
Transfer-Encodingvalue (lowercases the token) before forwarding - Disable backend keep-alive between the intermediary and Ember
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-9998-894r-fwvr | github.com |
| Web | http4s/http4s commit 5e88b2e | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
