What’s Vulnerable › Vulnerabilities

CVE-2026-42578: Netty: HTTP Header Injection via HttpProxyHandler Disabled Validation

Description

Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, Netty's HttpProxyHandler constructs HTTP CONNECT requests with header validation explicitly disabled. The newInitialMessage() method creates headers using DefaultHttpHeadersFactory.headersFactory().withValidation(false), then adds user-provided outboundHeaders without any CRLF validation. This allows an attacker who can influence the outbound headers to inject arbitrary HTTP headers into the CONNECT request sent to the proxy server. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.

Affected products

How to fix

Upgrade to a fixed version: netty 4.1.133, 4.2.13. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-42578 or the next vulnerability affects your stack