Netty vulnerable to request smuggling due to incorrect parsing of chunk extensions
Published 4 Sept 2025 · Updated 10 Sept 2026
Is your project on an affected io.netty:netty-codec-http?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- <4.1.125.Final
- Fixed in
- 4.1.125.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http -DdepVersion=4.1.125.Final -DforceVersion=true- Affected
- >=4.2.0.Alpha1 <4.2.5.Final
- Fixed in
- 4.2.5.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http -DdepVersion=4.2.5.Final -DforceVersion=trueDetails
Summary
A flaw in netty's parsing of chunk extensions in HTTP/1.1 messages with chunked encoding can lead to request smuggling issues with some reverse proxies.
Details
When encountering a newline character (LF) while parsing a chunk extension, netty interprets the newline as the end of the chunk-size line regardless of whether a preceding carriage return (CR) was found. This is in violation of the HTTP 1.1 standard which specifies that the chunk extension is terminated by a CRLF sequence (see the RFC).
This is by itself harmless, but consider an intermediary with a similar parsing flaw: while parsing a chunk extension, the intermediary interprets an LF without a preceding CR as simply part of the chunk extension (this is also in violation of the RFC, because whitespace characters are not allowed in chunk extensions). We can use this discrepancy to construct an HTTP request that the intermediary will interpret as one request but netty will interpret as two (all lines ending with CRLF, notice the LFs in the chunk extension):
POST /one HTTP/1.1 Host: localhost:8080 Transfer-Encoding: chunked 48;\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n0 POST /two HTTP/1.1 Host: localhost:8080 Transfer-Encoding: chunked 0
The intermediary will interpret this as a single request. Once forwarded to netty, netty will interpret it as two separate requests. This is a problem, because attackers can then the intermediary, as well as perform standard request smuggling attacks against other live users (see this Portswigger article).
Impact
This is a request smuggling issue which can be exploited for bypassing front-end access control rules as well as corrupting the responses served to other live clients.
The impact is high, but it only affects setups that use a front-end which: 1. Interprets LF characters (without preceding CR) in chunk extensions as part of the chunk extension. 2. Forwards chunk extensions without normalization.
Disclosure
- This vulnerability was disclosed on June 18th, 2025 here: https://w4ke.info/2025/06/18/funky-chunks.html
Discussion
Discussion for this vulnerability can be found here:
- https://github.com/netty/netty/issues/15522
- https://github.com/JLLeitschuh/unCVEed/issues/1
Credit
- Credit to @JeppW for uncovering this vulnerability.
- Credit to @JLLeitschuh at Socket for coordinating the vulnerability disclosure.
Is GHSA-fghv-69vj-qj49 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-http, and gives you the command that fixes it.
More advisories for io.netty:netty-codec-http
- MediumCVE-2026-59903Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite · 17 Aug 2026
- MediumCVE-2026-59921Netty: CRLF Injection via Multipart Filename in Netty HttpPostRequestEncoder · 22 Jul 2026
- MediumCVE-2026-59899Netty: [HttpContentEncoder] Unbounded Per-Connection Queue Growth via HTTP/1.1 Pipelining Leads to Denial of Service · 22 Jul 2026
- MediumCVE-2026-59898Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation · 22 Jul 2026
- MediumCVE-2026-56746Netty: Security Control Bypass via CORS Short-Circuit Failure · 22 Jul 2026
- HighCVE-2026-56745Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion · 22 Jul 2026
References
- Linkgithub.com/netty/netty/security/advisories/GHSA-fghv-69vj-qj49
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-58056
- Linkgithub.com/JLLeitschuh/unCVEed/issues/1
- Linkgithub.com/netty/netty/issues/15522
- Linkgithub.com/github/advisory-database/pull/6092
- Linkgithub.com/netty/netty/pull/15611
- Linkgithub.com/netty/netty/commit/edb55fd8e0a3bcbd85881e423464f585183d1284
- Linkdatatracker.ietf.org/doc/html/rfc9112#name-chunked-transfer-coding
- Packagegithub.com/netty/netty
- Linkw4ke.info/2025/06/18/funky-chunks.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.