Netty vulnerable to HTTP Response splitting from assigning header value iterator
Published 12 Dec 2022 · Updated 28 Jan 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 package
- Affected
- >=4.1.83.Final <4.1.86.Final
- Fixed in
- 4.1.86.Final
mvn versions:use-dep-version -Dincludes=io.netty:netty-codec-http -DdepVersion=4.1.86.Final -DforceVersion=trueDetails
Impact
When calling DefaultHttpHeaders.set with an _iterator_ of values (as opposed to a single given value), header value validation was not performed, allowing malicious header values in the iterator to perform HTTP Response Splitting.
Patches
The necessary validation was added in Netty 4.1.86.Final.
Workarounds
Integrators can work around the issue by changing the DefaultHttpHeaders.set(CharSequence, Iterator<?>) call, into a remove() call, and call add() in a loop over the iterator of values.
References
HTTP Response Splitting CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers
For more information
If you have any questions or comments about this advisory:
- Open an issue in [example link to repo](https://github.com/netty/netty)
- Email us at [netty-security@googlegroups.com](mailto:netty-security@googlegroups.com)
Is GHSA-hh82-3pmq-7frp 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-hh82-3pmq-7frp
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-41915
- Linkgithub.com/netty/netty/issues/13084
- Linkgithub.com/netty/netty/pull/12760
- Linkgithub.com/netty/netty/commit/c37c637f096e7be3dffd36edee3455c8e90cb1b0
- Linkgithub.com/netty/netty/commit/fe18adff1c2b333acb135ab779a3b9ba3295a1c4
- Linkgithub.com/netty/netty
- Linklists.debian.org/debian-lts-announce/2023/01/msg00008.html
- Linksecurity.netapp.com/advisory/ntap-20230113-0004
- Linkwww.debian.org/security/2023/dsa-5316
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.