MediumGHSA-f256-j965-7f32CVE-2021-21409

Possible request smuggling in HTTP/2 due missing validation of content-length

Published 30 Mar 2021 · Updated 10 Sept 2026

Is your project on an affected io.netty:netty-codec-http2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=4.0.0 <4.1.61.Final
Fixed in
4.1.61.Final
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http2 -DdepVersion=4.1.61.Final -DforceVersion=true
Affected
All versions
Fixed in
No fix released
Affected
All versions
Fixed in
No fix released

Details

Impact

The content-length header is not correctly validated if the request only use a single Http2HeaderFrame with the endStream set to to true. This could lead to request smuggling if the request is proxied to a remote peer and translated to HTTP/1.1

This is a followup of https://github.com/netty/netty/security/advisories/GHSA-wm47-8v5p-wjpj which did miss to fix this one case.

Patches

This was fixed as part of 4.1.61.Final

Workarounds

Validation can be done by the user before proxy the request by validating the header.

Is GHSA-f256-j965-7f32 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected io.netty:netty-codec-http2, and gives you the command that fixes it.

More advisories for io.netty:netty-codec-http2

  • HighCVE-2026-56819Netty: HTTP/2 decompression leaks ByteBuf reference count when the decompressor channel is already closed (Direct memory leak / OOM DoS) · 31 Jul 2026
  • MediumCVE-2026-59900Netty: [codec-http2] Lack of Host Header Deduplication in HTTP/2→HTTP/1.x Translation Leads to Request Routing Bypass · 22 Jul 2026
  • MediumCVE-2026-50560Netty susceptible to HTTP/2 Reset Attack with different on-the-wire signature · 15 Jun 2026
  • MediumCVE-2026-48043netty-codec-http2: ByteBuf Reference-Count Leak in DelegatingDecompressorFrameListener Leads to Memory Exhaustion · 11 Jun 2026
  • MediumCVE-2026-47244Netty HTTP/2: Advertised MAX_CONCURRENT_STREAMS are not enforced · 8 Jun 2026
  • HighCVE-2026-42587Netty: HttpContentDecompressor maxAllocation bypass when Content-Encoding set to br/zstd/snappy leads to decompression bomb DoS · 7 May 2026
All 11 advisories for io.netty:netty-codec-http2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.