http4s WebSocket decoder accepts negative length, causing infinite decode loop
- CVE-2026-69210
- GHSA-3j86-pj9g-jchr
- EUVD-2026-79192
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](https://www.rfc-editor.org/info/rfc6455/#section-5.2): Base Framing Protocol
Text from the GitHub Advisory record.
Recommendation
http4s
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikely
- If you run a version before 0.23.35update to 0.23.35 or later
org.http4s:http4s-core_2.12
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-core_2.12 0.23.35 on its registry (opens in a new tab)
org.http4s:http4s-core_2.13
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikelyorg.http4s:http4s-core_2.13 1.0.0-M47 on its registry (opens in a new tab)
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-core_2.13 0.23.35 on its registry (opens in a new tab)
org.http4s:http4s-core_3
- If you run 1.0.xupdate to 1.0.0-M47 or laterPatch update: breaking changes are unlikelyorg.http4s:http4s-core_3 1.0.0-M47 on its registry (opens in a new tab)
- If you run a version before 0.23.35update to 0.23.35 or laterorg.http4s:http4s-core_3 0.23.35 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
http4s
Affected versions Fixed in from 1.0.0-M1 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35 org.http4s:http4s-core_2.12Maven
Affected versions Fixed in before 0.23.35 0.23.35 org.http4s:http4s-core_2.13Maven
Affected versions Fixed in from 1.0.0-M2 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35 org.http4s:http4s-core_3Maven
Affected versions Fixed in from 1.0.0-M2 to before 1.0.0-M47 1.0.0-M47 before 0.23.35 0.23.35
Product versions from the ENISA EUVD record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.