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
- RFC 6455 §5.2: Base Framing Protocol
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed 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
70% of the dependent artifacts (1,180) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.http4s » http4s-dsl527 usages
- org.http4s » http4s-circe346 usages
- com.github.pureconfig » pureconfig307 usages
- org.http4s » http4s-client254 usages
- org.http4s » http4s-blaze-client252 usages
- org.http4s » http4s-blaze-server239 usages
- org.http4s » http4s-server160 usages
- org.http4s » http4s-ember-client146 usages
- org.http4s » http4s-ember-server108 usages
- org.locationtech.geomesa » geomesa-tools56 usages
- org.http4s » http4s-testing43 usages
- net.shrine » shrine-util39 usages
- com.softwaremill.sttp.tapir » tapir-http4s-server38 usages
- org.locationtech.geotrellis » geotrellis-spark38 usages
- net.shrine » shrine-protocol32 usages
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.
References
| Advisory | NVD CVE-2026-69210 | nvd.nist.gov |
| Package | http4s/http4s | github.com |
| Web | http4s/http4s advisory GHSA-3j86-pj9g-jchr | github.com |
| Web | http4s/http4s commit c7d3ef9 | github.com |
| Web | http4s/http4s release v0.23.35 | github.com |
| Web | http4s/http4s release v1.0.0-M47 | github.com |
