HighGHSA-p83c-4wj9-p6w9CVE-2026-69217

http4s: Ember Server Accepts Duplicate Content-Length Headers

Published 30 Nov 2026 · Updated 30 Nov 2026

Affected packages

Affected
<0.23.35
Fixed in
0.23.35
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.http4s:http4s-ember-core_2.12 -DdepVersion=0.23.35 -DforceVersion=true
Affected
<0.23.35
Fixed in
0.23.35
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.http4s:http4s-ember-core_2.13 -DdepVersion=0.23.35 -DforceVersion=true
Affected
>=1.0.0-M2 <1.0.0-M47
Fixed in
1.0.0-M47
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.http4s:http4s-ember-core_2.13 -DdepVersion=1.0.0-M47 -DforceVersion=true
Affected
>=1.0.0-M2 <1.0.0-M47
Fixed in
1.0.0-M47
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.http4s:http4s-ember-core_3 -DdepVersion=1.0.0-M47 -DforceVersion=true
Affected
<0.23.35
Fixed in
0.23.35
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.http4s:http4s-ember-core_3 -DdepVersion=0.23.35 -DforceVersion=true

We confirm your address first. See our privacy policy.

Which org.http4s:http4s-ember-core_2.12 does your project really install?

Drop your pom.xml hereWe find the exact org.http4s:http4s-ember-core_2.12 version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads build.gradle or gradle.lockfile.

Public repo?

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

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

Is GHSA-p83c-4wj9-p6w9 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.http4s:http4s-ember-core_2.12, and gives you the command that fixes it.

More advisories for org.http4s:http4s-ember-core_2.12

  • HighCVE-2026-88975Http4s: Ember HTTP/2 buffers a frame's declared payload before checking SETTINGS_MAX_FRAME_SIZE · 15 Sept 2026
  • HighCVE-2026-69218Http4s Ember HTTP/2: unbounded continuation frame accumulation · 15 Sept 2026
  • MediumCVE-2026-69216Http4s: Ember chunk parser lenience (TE.TE request smuggling) · 15 Sept 2026
  • HighCVE-2026-69213Http4s Ember HTTP/2 has an unbounded outbound frame queue · 15 Sept 2026
  • MediumCVE-2026-69206Http4s: DigestAuth allows replay of captured requests · 15 Sept 2026
  • HighCVE-2026-69205Http4s Ember Transfer-Encoding value parsing (TE.CL / TE.0 request smuggling) · 15 Sept 2026
All 12 advisories for org.http4s:http4s-ember-core_2.12

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.