CVE-2026-73493
blaze: Unbounded WebSocket message aggregation in http4s-blaze-server
Description
Summary
http4s-blaze-server aggregates the fragments of an incoming WebSocket
message with no limit on total size or fragment count. A client that
completes a WebSocket handshake can send an unterminated fragmented
message and drive unbounded heap growth in the server JVM, resulting in
denial of service via OutOfMemoryError.
Impact
Any http4s application serving WebSocket routes over
BlazeServerBuilder is affected; no non-default configuration is required,
and maxWebSocketBufferSize does not bound the aggregate (it bounds only
individual frames). A single connection sending continuation frames that
never set FIN forces the server to buffer every fragment until the heap is
exhausted, terminating the JVM with OutOfMemoryError on the blaze
selector thread. Small fragments amplify the cost through per-frame object
overhead, so a modest volume of wire bytes is sufficient. Where the
WebSocket endpoint is reachable without authentication the attacker is
unauthenticated and remote; where the handshake requires a principal, any
authenticated client can still trigger it.
Workarounds
- No blaze-server configuration bounds the aggregate;
maxWebSocketBufferSizeis not a mitigation. - Terminate/limit WebSocket traffic at a fronting layer that enforces message-size and fragment limits, or disable WebSocket routes.
- Longer term: blaze is EOL upstream; plan migration to a maintained backend (e.g. ember).
Affected Maven artifacts (3)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.http4s » http4s-blaze-server_2.12 | < 0.23.18 | 0.23.18 |
| org.http4s » http4s-blaze-server_2.13 | < 0.23.18>= 1.0.0-M1, < 1.0.0-M42 | 0.23.18, 1.0.0-M42 |
| org.http4s » http4s-blaze-server_3 | >= 1.0.0-M1, < 1.0.0-M42 | 1.0.0-M42 |
Blast radius
80% of the dependent artifacts (204) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 4,494 |
| 2 hops | 1,904 |
| 3 hops | 207 |
| 4 hops | 121 |
| 5 hops | 9 |
Most used dependents
- com.softwaremill.sttp.tapir » tapir-http4s-server38 usages
- net.playq » tk-test15 usages
- com.goyeau » kubernetes-client11 usages
- net.playq » tk-metrics-api10 usages
- com.itv » scalapact-scalatest10 usages
- com.clovellytech » h4sm-testutil-db8 usages
- com.clovellytech » h4sm-auth7 usages
- com.github.fomkin » korolev-server7 usages
- com.ing.baker » bakery-interaction-protocol6 usages
- com.clovellytech » h4sm-testutil6 usages
- com.softwaremill.sttp.tapir » tapir-zio-http4s-server5 usages
- com.snowplowanalytics » streams-core5 usages
- com.github.agourlay » cornichon5 usages
- com.itv » scalapact-http4s-0-214 usages
- com.clovellytech » h4sm-dbtesting4 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
| Package | http4s/blaze | github.com |
| Web | http4s/blaze advisory GHSA-7ppr-r889-mcf2 | github.com |
| Web | http4s/blaze commit 173e8ca | github.com |
| Web | http4s/blaze commit 2ae13a7 | github.com |
| Web | http4s/blaze commit fadbe6d | github.com |
| Web | http4s/blaze release v0.23.18 | github.com |
| Web | http4s/blaze release v1.0.0-M42 | github.com |
