HIGH 7.5

CVE-2026-69210

http4s WebSocket decoder accepts negative length, causing infinite decode loop

Description

WebSocket's FrameTranscoder.bodyLength reads a 64-bit extended payload length and rejects only values greater than Integer.MAX_VALUE. A negative length passes validation. This makes the decoder return an empty frame without advancing the buffer, and drives the decode loop into an uninterruptible infinite loop. This pins a CPU and grows an ArrayBuffer unbounded.

The defective transcoder is in http4s-core, but the denial of service manifests with http4s-ember-server.

Impact

A single frame can pin one worker at 100% CPU in an uninterruptible loop and grows memory unboundedly, resulting in a denial of service.

Preconditions

  • Server exposes a WebSocket endpoint via an Ember server.
  • Attacker completes the WebSocket handshake.

Workarounds

None

Resources

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.http4s » http4s-core_2.12
< 0.23.35
0.23.35
org.http4s » http4s-core_2.13
< 0.23.35>= 1.0.0-M2, < 1.0.0-M47
0.23.35, 1.0.0-M47
org.http4s » http4s-core_3
< 0.23.35>= 1.0.0-M2, < 1.0.0-M47
0.23.35, 1.0.0-M47

Blast radius

1affected artifacts
379affected versions
1,683dependent artifacts (est.)
82,309dependent versions

70% of the dependent artifacts (1,180) still pull an affected version in their latest release.

DepthDependent versions
Direct
16,270
2 hops
26,443
3 hops
17,009
4 hops
7,098
5 hops
9,520
6 hops
5,969

Most used dependents

Computed from the dependency graph of build 20261203.1441 (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.