CVE-2026-73493
JSON

7.5high

http4s-blaze-server: Unbounded WebSocket message aggregation

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.35% (higher than 30% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7ppr-r889-mcf2

Description

Http4s (http4s-blaze-server) is a minimal, idiomatic Scala interface for HTTP services. Prior to 0.23.18 and 1.0.0-M42, http4s-blaze-server aggregates 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 through OutOfMemoryError. Any http4s application serving WebSocket routes over BlazeServerBuilder is affected, no non-default configuration is required, and maxWebSocketBufferSize does not bound the aggregate because 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. This issue is fixed in versions 0.23.18 and 1.0.0-M42.

Affected

Product or packageVersionsReported by
http4s blaze< 0.23.18, >= 1.0.0-M1, < 1.0.0-M42CVE List
org.http4s:http4s-blaze-server_2.13 (Maven)before 0.23.18, from 1.0.0-M1 before 1.0.0-M42GitHub Advisory Database
org.http4s:http4s-blaze-server_2.12 (Maven)before 0.23.18GitHub Advisory Database
org.http4s:http4s-blaze-server_3 (Maven)from 1.0.0-M1 before 1.0.0-M42GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Http4s (http4s-blaze-server) is a minimal, idiomatic Scala interface for HTTP services. Prior to 0.23.18 and 1.0.0-M42, http4s-blaze-server aggregates 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 through OutOfMemoryError. Any http4s application serving WebSocket routes over BlazeServerBuilder is affected, no non-default configuration is required, and maxWebSocketBufferSize does not bound the aggregate because 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. This issue is fixed in versions 0.23.18 and 1.0.0-M42.

GitHub Advisory Database

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; maxWebSocketBufferSize is 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).
NVD (es)

Http4s (http4s-blaze-server) es una interfaz Scala mínima e idiomática para servicios HTTP. Antes de 0.23.18 y 1.0.0-M42, http4s-blaze-server agrega fragmentos de un mensaje WebSocket entrante sin límite en el tamaño total o el recuento de fragmentos. Un cliente que completa un handshake WebSocket puede enviar un mensaje fragmentado no terminado y provocar un crecimiento ilimitado del heap en la JVM del servidor, lo que resulta en una denegación de servicio a través de OutOfMemoryError. Cualquier aplicación http4s que sirva rutas WebSocket sobre BlazeServerBuilder se ve afectada, no se requiere ninguna configuración no predeterminada, y maxWebSocketBufferSize no limita el agregado porque solo limita los frames individuales. Una única conexión que envía frames de continuación que nunca establecen FIN fuerza al servidor a almacenar en búfer cada fragmento hasta que el heap se agota, terminando la JVM con OutOfMemoryError en el hilo selector de blaze. Los fragmentos pequeños amplifican el costo a través de la sobrecarga de objetos por frame, por lo que un volumen modesto de bytes en la red es suficiente. Este problema está solucionado en las versiones 0.23.18 y 1.0.0-M42.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-73493 changed 2026-08-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-7ppr-r889-mcf2 changed 2026-08-12CC-BY-4.0
NVDCVE-2026-73493 changed 2026-10-24Public domain