Skip to content

Denial of Service (OOM) in quarkus-websockets-next via unbounded message buffering

High
cescoffier published GHSA-2pm6-35wv-h53j Oct 5, 2026

Package

maven io.quarkus:quarkus-websockets-next (Maven)

Affected versions

<3.33.3.3
<3.27.5.3
<3.39.5

Patched versions

3.33.3.3
3.27.5.3
3.39.5

Description

A Denial of Service vulnerability exists in the quarkus-websockets-next extension due to unbounded message buffering.
The framework uses an unbounded queue and fails to apply read backpressure on the underlying network socket.
An attacker can stream messages over a single connection faster than the application's handler can process them.
This rapidly exhausts heap space, causing a java.lang.OutOfMemoryError that crashes the JVM.

Impact

Any application using the io.quarkus:quarkus-websockets-next extension is impacted.

The WebSocket endpoint processes inbound messages using an unbounded MPSC queue without applying read backpressure to the underlying socket. Because no concurrency limit or queue capacity is applied to inbound messages, an attacker can stream messages (e.g., just under the 256 KB default size limit) over a single connection faster than the application's handler can drain them. This causes the messages to accumulate in memory without bound, rapidly leading to a java.lang.OutOfMemoryError and crashing the JVM.

If the WebSocket endpoint is unsecured (no authentication required), an unauthenticated remote attacker can trigger this crash trivially.

Workarounds

Until a patch is available, organizations can mitigate this by applying controls outside the application:

  • Reverse Proxy / WAF Rate Limiting: Enforce strict rate limiting on WebSocket frames/messages at your reverse proxy (e.g., Nginx, HAProxy, Envoy) to prevent a single connection from flooding the endpoint.
  • Require Authentication: If the endpoint is currently unsecured, requiring authentication will limit the attack surface to authenticated users only (though a malicious authenticated user could still trigger the DoS).

References

  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-400: Uncontrolled Resource Consumption

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVE ID

CVE-2026-87742

Weaknesses

Uncontrolled Resource Consumption

The product does not properly control the allocation and maintenance of a limited resource. Learn more on MITRE.

Allocation of Resources Without Limits or Throttling

The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. Learn more on MITRE.

Credits