# GHSA-973F-VVMG-R76V: Micronaut WebSocket server lacks inbound backpressure and decompression limits and leaks fragmented ByteBuf messages

- Database: GitHub
- Severity: CVSS 5.9 (Medium)
- Published: 2026-11-11
- Modified: 2026-11-11

## Affected versions

- io.micronaut:micronaut-http-netty (Maven): fixed in 3.10.19
- io.micronaut:micronaut-http-netty (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-http-netty (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-http-server-netty (Maven): fixed in 3.10.19
- io.micronaut:micronaut-http-server-netty (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-http-server-netty (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-websocket (Maven): fixed in 3.10.19
- io.micronaut:micronaut-websocket (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-websocket (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-http-client (Maven): fixed in 3.10.19
- io.micronaut:micronaut-http-client (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-http-client (Maven): from 5.0.0, fixed in 5.2.23

## Description

### Summary

A WebSocket peer can exhaust server memory or event-loop capacity in several ways: permessage-deflate (negotiated by default) inflates frames without a cap, defeating `maxPayloadLength` (observed 256x amplification); `@ServerWebSocket` beans apply no inbound read or concurrency backpressure, so messages are dispatched without bound; every ping is answered with a pong while reading continues, so a non-reading peer grows server outbound memory with its upload, also after `WebSocketSession.close()`; and fragmented messages delivered to a `ByteBuf` `@OnMessage` handler leak the reassembled payload. `broadcastSync`/`sendSync` block on the event loop and can deadlock it, a broadcast write failure closes the sender, and the WebSocket client leaks connections when extension negotiation fails. An unauthenticated client of any WebSocket endpoint can cause denial of service. The fix is to bound inflated size, stop reading while handler dispatch or outbound data is pending, stop reading after close, release reassembled buffers, and keep blocking APIs off the event loop.

### Affected and patched versions

| Package | Affected versions | Patched version |
| --- | --- | --- |
| `io.micronaut:micronaut-http-netty` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-http-netty` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-http-netty` | `>= 5.0.0, < 5.2.23` | `5.2.23` |
| `io.micronaut:micronaut-http-server-netty` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-http-server-netty` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-http-server-netty` | `>= 5.0.0, < 5.2.23` | `5.2.23` |
| `io.micronaut:micronaut-websocket` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-websocket` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-websocket` | `>= 5.0.0, < 5.2.23` | `5.2.23` |
| `io.micronaut:micronaut-http-client` | `< 3.10.19` | `3.10.19` |
| `io.micronaut:micronaut-http-client` | `>= 4.0.0, < 4.10.37` | `4.10.37` |
| `io.micronaut:micronaut-http-client` | `>= 5.0.0, < 5.2.23` | `5.2.23` |

The 3.x fix is in [commit 8990b0979c](https://github.com/micronaut-projects/micronaut-core/commit/8990b0979ce74d5dea47d874a53fe6437203bd86), first included in stable release [3.10.19](https://github.com/micronaut-projects/micronaut-core/releases/tag/v3.10.19). The last affected stable 3.10.x release is 3.10.18.

### Findings

- F02
- F03 (= ANT-2026-VGGGQBL1)
- F16 (= ANT-2026-EW0ZQXVE)
- F33 (= ANT-2026-550WOTB9)
- ANT-2026-L0JZE30L
- ANT-2026-WCRIJCEK
- ANT-2026-C4EWJVRX
- ANT-2026-GZ15ZNU2

## References

- https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-973f-vvmg-r76v

Page: https://cve.now/GHSA-973F-VVMG-R76V

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
