CVE-2026-56746: Netty: Security Control Bypass via CORS Short-Circuit Failure
Summary Netty's CorsHandler provides a shortCircuit() configuration designed to reject unauthorized cross-origin requests immediately, acting as a security control before requests reach the application. However, due to a logical operator error in the origin evaluation process, this protection can be entirely bypassed.
Published Jul 22, 2026
Affected packages
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- >= 4.2.0.Final, < 4.2.16.Final
- Fixed in
- 4.2.16.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- < 4.1.136.Final
- Fixed in
- 4.1.136.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
Netty's CorsHandler provides a shortCircuit() configuration designed to reject unauthorized cross-origin requests immediately, acting as a security control before requests reach the application. However, due to a logical operator error in the origin evaluation process, this protection can be entirely bypassed. An attacker can bypass the short-circuit mechanism by sending a request with an Origin: null header. This failure forwards unauthorized requests to the backend application, bypassing intended access controls.
Details
In io.netty.handler.codec.http.cors.CorsHandler#channelRead, the short-circuit logic relies on the configuration returned by getForOrigin(origin) to determine if an origin is authorized. If getForOrigin returns a configuration object, the short-circuit check (!(origin == null || config != null)) is bypassed, and the request proceeds to the backend.
The vulnerability is located in the getForOrigin method:
if (corsConfig.isNullOriginAllowed() || NULL_ORIGIN.equals(requestOrigin)) {
return corsConfig;
}If an attacker sends Origin: null, NULL_ORIGIN.equals(requestOrigin) evaluates to true. The method returns the configuration object regardless of whether isNullOriginAllowed() was configured by the developer. The short-circuit is bypassed.
Impact
Applications relying on CorsHandler's short-circuit feature to prevent unauthorized cross-origin requests from reaching their backend logic are completely exposed. The framework fails to enforce the developer's intended access controls, allowing unauthorized requests to be processed.
Credited to violetagg.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-59903
Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite
medium6.5Aug 17, 2026CVE-2026-55831
Netty SPDY SETTINGS frame count materializes unbounded settings map
high7.5Jul 22, 2026CVE-2026-55833
Netty SPDY zlib header block continues decoded expansion after maxHeaderSize truncation
high7.5Jul 22, 2026CVE-2026-56745
Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion
high8.7Jul 22, 2026CVE-2026-59898
Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation
medium6.3Jul 22, 2026CVE-2026-59899
Netty: [HttpContentEncoder] Unbounded Per-Connection Queue Growth via HTTP/1.1 Pipelining Leads to Denial of Service
medium6.9Jul 22, 2026
