# GHSA-J3JR-9QW4-M252: Micronaut HTTP clients buffer responses beyond max-content-length and never time out stalled bodies

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

## Affected versions

- io.micronaut:micronaut-http-client (Maven): from 4.7.0, fixed in 4.10.37
- io.micronaut:micronaut-http-client (Maven): from 5.0.0, fixed in 5.2.23
- io.micronaut:micronaut-http-client-jdk (Maven): from 4.0.0, fixed in 4.10.37
- io.micronaut:micronaut-http-client-jdk (Maven): from 5.0.0, fixed in 5.2.23

## Description

### Summary

The Netty client appends inflated content to a buffered response without counting it until the state exits, so a gzip bomb exceeds `max-content-length`, and after the limit is exceeded it keeps reading and inflating; on 5.2.x `SseSplitter` searches for newlines quadratically. The JDK client buffers responses with `BodyHandlers.ofByteArray` without applying `max-content-length`, and its read timeout covers only the headers, so a stalled body is never timed out. A malicious upstream can exhaust client memory or CPU, or hold client threads indefinitely. The fix is to count decompressed bytes as they are produced, stop reading once the limit is hit, use linear line splitting, and apply limits and a body read timeout in the JDK client.

### Affected

Affected versions: 4.7.0 to 5.2.16 for the Netty client members (Http1ResponseHandler, SseSplitter); 4.0.0 to 5.2.16 for the JDK client members. Latest affected release: 5.2.16.

### Findings

- ANT-2026-H5BZIK2T
- ANT-2026-HWM5BSP8
- ANT-2026-X3YOV5XM
- ANT-2026-SW9I6938
- ANT-2026-SX7T9KV3

## References

- https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-j3jr-9qw4-m252

Page: https://cve.now/GHSA-J3JR-9QW4-M252

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