Skip to content

[Aikido] Fix 38 security issues in netty-handler, netty-codec-http2, netty-codec-http and 6 more - #406

Open
aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/AIK-22905-AIK-21290-update-packages-200655798-hfx8
Open

aikido-autofix[bot] wants to merge 1 commit into
mainfrom
fix/AIK-22905-AIK-21290-update-packages-200655798-hfx8

Conversation

@aikido-autofix

@aikido-autofix aikido-autofix Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes Netty TLS SNI bypass allowing unauthenticated mTLS circumvention, and Spring UriComponentsBuilder open redirect/SSRF flaws via host validation bypass.

⚠️ Incomplete breaking changes analysis (8/11 analyzed)

⚠️ Breaking changes analysis not available for: io.projectreactor.netty:reactor-netty-http, io.projectreactor:reactor-core, io.projectreactor.netty:reactor-netty-core

✅ The breaking changes in the upgraded packages do not affect this codebase:

Spring Framework (5.3.20 => 5.3.41): The codebase does not use Spring Expression Language (SpEL) features. No usage of SimpleEvaluationContext, ExpressionParser, parseExpression, or SpEL annotations like @Value, @Cacheable, @PreAuthorize was found in the agent or agent_api modules. Spring dependencies are only used for test purposes in the agent_api module.

Netty (4.1.135.Final => 4.1.138.Final): While Netty is a transitive dependency through Javalin, the codebase does not directly import or use any Netty classes. There is no code that relies on HTTP/2 frame hashCode values, performs HTTP header validation, or interacts with Netty's HTTP/2 codec APIs.

Jetty (11.0.24 => 11.0.33): The codebase does not implement HttpChannel.Listener or use onResponseBegin callbacks. Jetty is used as an embedded server through Javalin, but there is no direct interaction with Jetty's listener APIs or response header modification in listeners.

The agent instruments web frameworks at a higher level (Javalin, Spring MVC, Spring Webflux) without directly interacting with the underlying HTTP server implementations or SpEL evaluation contexts.

All breaking changes by upgrading io.netty:netty-codec-http2 from version 4.1.135.Final to 4.1.138.Final (CHANGELOG)

Version Description
4.1.136
Make HTTP/2 frame hashCode consistent with equals - this changes the hashCode implementation which could break code relying on the previous hash values
4.1.136
Reject control characters at the boundary of HTTP method names - this restricts previously accepted input
4.1.136
Strictly validate MQTT UTF-8 Encoded String - this restricts previously accepted input
4.1.136
Reject control characters at the boundary of the HTTP version token - this restricts previously accepted input
4.1.136
Reject non-token characters in HTTP/2 header names - this restricts previously accepted input
4.1.138
HTTP/2 header value validation is now enabled by default, changing from opt-out to opt-in behavior

All breaking changes by upgrading io.netty:netty-codec-http2 from version 4.1.135.Final to 4.1.138.Final (CHANGELOG)

Version Description
4.1.136
Make HTTP/2 frame hashCode consistent with equals - this changes the hashCode implementation which could break code relying on the previous hash values
4.1.136
Reject control characters at the boundary of HTTP method names - this restricts previously accepted input
4.1.136
Strictly validate MQTT UTF-8 Encoded String - this restricts previously accepted input
4.1.136
Reject control characters at the boundary of the HTTP version token - this restricts previously accepted input
4.1.136
Reject non-token characters in HTTP/2 header names - this restricts previously accepted input
4.1.138
HTTP/2 header value validation is now enabled by default, changing from opt-out to opt-in behavior
✅ 45 CVEs resolved by this upgrade

This PR will resolve the following CVEs:

Issue Severity           Description
CVE-2024-22262
HIGH
[spring-core] Applications parsing external URLs with UriComponentsBuilder and validating the host are vulnerable to open redirect or SSRF attacks when the URL is used after validation. This flaw lets attackers bypass host checks via crafted input.
CVE-2024-22243
HIGH
[spring-core] Applications parsing externally provided URLs with UriComponentsBuilder and validating the host may be exposed to open redirect or SSRF attacks when the URL is used after validation. The parser can yield a host differing from what validation checked.
CVE-2024-22259
HIGH
[spring-core] Applications that use UriComponentsBuilder in Spring Framework to parse an externally provided URL (e.g. through a query parameter) AND perform validation checks on the host of the parsed URL may be vulnerable to a open redirect https://cwe.mitre.org/data/definitions/601.html  atta...
AIKIDO-2024-10361
LOW
[spring-core] Affected versions of the package are vulnerable to improper handling of case sensitivity. The use of String.toLowerCase() introduces locale-dependent exceptions that can cause fields to be improperly protected, potentially allowing attackers to bypass security checks based on case...
CVE-2024-38809
LOW
[spring-core] Applications that parse ETags from "If-Match" or "If-None-Match" request headers are vulnerable to DoS attack.

Users of affected versions should upgrade to the corresponding fixed version.

Users of older, unsupported versions could enforce a size limit on "If-Match" and "If-None-M...
CVE-2026-75595
HIGH
[netty-handler] Netty is an asynchronous, event-driven network application framework. Prior to 4.1.137.Fina and 4.2.17.Final, io.netty.handler.ssl.SslClientHelloHandler#decode checks the wrong offset before reading the four-byte TLS handshake header, so a ClientHello whose handshake header spans ...
CVE-2026-75596
LOW
[netty-handler] Netty is an asynchronous, event-driven network application framework. Prior to 4.1.137.Final and 4.2.17.Final, the default io.netty.handler.ssl.SniHandler constructors use the pre-handshake ClientHello aggregation path in handler/src/main/java/io/netty/handler/ssl/SslClientHelloHa...
AIKIDO-2026-445867
HIGH
[netty-handler] Netty contains a vulnerability in TLS ClientHello parsing that can cause the server to select the default SslContext instead of the intended SNI-specific one. In deployments that rely solely on SNI-selected SslContexts to enforce mutual TLS (mTLS), where the default context do...
AIKIDO-2026-421700
HIGH
[netty-handler] Netty's OpenSSL client path adds hostname verification to a plain X509TrustManager by wrapping it, and on the OpenSSL provider that wrapping relies on Unsafe-based reflection. On Java 25 and later Unsafe is unavailable by default, so the wrapping silently fails and the unwra...
CVE-2026-10050
HIGH
[jetty-security] In Eclipse Jetty, the Digest authentication server-side component uses ISO-8859-1 to encode the password as bytes.



This was done because the initial specification for HTTP did not specify explicitly a charset, and it was assumed to be ISO-8859-1 for historical reasons.



If t...
AIKIDO-2026-739270
HIGH
[netty-codec-http2] Netty's HTTP/2 content decompression via DelegatingDecompressorFrameListener leaks direct ByteBuf memory when a remote peer sends DATA frames for a stream whose decompressor channel has already been closed. In Http2Decompressor.decompress(...), data.retain() incremen...
AIKIDO-2026-592216
HIGH
[netty-codec-http2] In HTTP/1-to-HTTP/2 conversion, HttpConversionUtil.toHttp2Headers() prioritizes the HTTP/1 Host header over the authority carried in an absolute-form request-target, contrary to RFC 9112 which requires the request-target authority to take precedence. A request such as `GET...
AIKIDO-2026-918525
MEDIUM
[netty-codec-http2] During HTTP/1-to-HTTP/2 conversion, HttpConversionUtil.toHttp2Headers() does not special-case an HTTP/1 CONNECT request in authority-form. Instead of deriving :authority from the CONNECT request-target, it uses the HTTP/1 Host header, producing a malformed HTTP/2 CONNECT...
AIKIDO-2026-58442
MEDIUM
[netty-codec-http2] When converting HTTP/2 Extended CONNECT requests to HTTP/1.1, Netty downgrades them to ordinary CONNECT tunnels by dropping the :protocol pseudo-header and the Extended-CONNECT :path. A request carrying :protocol=websocket and :path=/admin/ws to `:authority=ws.example:...
AIKIDO-2026-453463
LOW
[netty-codec-http2] Netty's HTTP/2 stack does not validate header field values by default: names use a validator but values default to no validation and the encode path performs no checks. Prohibited octets such as NUL, CR, and LF therefore pass through verbatim on inbound and outbound HTTP/2 hea...
AIKIDO-2026-275094
LOW
[netty-codec-http2] A remote client can send an HTTP/2 SETTINGS frame advertising an extremely large header-table size, which DefaultHttp2HeadersEncoder accepts without a cap. The HpackEncoder then retains every unique outbound header indefinitely, degrading header lookups to O(n^2). Throughp...
CVE-2026-59903
HIGH
[netty-codec-http] Netty is an asynchronous, event-driven network application framework. Prior to 4.1.137.Final and 4.2.17.Final, io.netty.handler.codec.http.cors.CorsHandler setVaryHeader replaces application Vary headers such as Authorization or Cookie with Origin, allowing a caching proxy or C...
CVE-2026-55831
MEDIUM
[netty-codec-http] Netty is a network application framework for development of protocol servers and clients. Prior to 4.1.136.Final and 4.2.16.Final, Netty's SPDY SETTINGS decoder accepts a peer-declared SETTINGS entry count up to the 24-bit frame-length limit and materializes every unique settin...
CVE-2026-59898
MEDIUM
[netty-codec-http] Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, ab attacker can force WebSocket upgrade via the lax V07 (or V08) handshaker by sending Sec-WebSocket-Version: 7 and omitting Connection: Upgrade / `Upgra...
CVE-2026-59899
MEDIUM
[netty-codec-http] Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, HttpContentEncoder (the superclass of the production handler HttpContentCompressor) maintains a per-channel ArrayDeque<CharSequence> named `acceptEncodi...
CVE-2026-56746
MEDIUM
[netty-codec-http] Netty is a network application framework for development of protocol servers and clients. Versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, are vulnerable to security control bypass during the origin evaluation process. CorsHandler provides a shor...
CVE-2026-59921
MEDIUM
[netty-codec-http] Netty's HttpPostRequestEncoder fails to strip CRLF characters from user-supplied filenames and field names in multipart Content-Disposition headers, allowing attackers to inject arbitrary MIME headers into request bodies (header injection).
CVE-2026-55833
LOW
[netty-codec-http] Netty is a network application framework for development of protocol servers and clients. Prior to 4.1.136.Final and 4.2.16.Final, Netty SPDY header decoding continues inflating zlib-compressed header blocks after the raw header parser has exceeded maxHeaderSize and marked th...
CVE-2026-56745
LOW
[netty-codec-http] Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, the SpdyHttpDecoder handler in Netty's SPDY-to-HTTP codec allocates a pooled ByteBuf when processing...
CVE-2026-56819
HIGH
[netty-codec-http2] Netty is a network application framework for development of protocol servers and clients. In versions 4.2.0.Final through 4.2.15.Final and 4.1.0.Final through 4.1.135.Final, a remote unauthenticated peer can leak one direct ByteBuf per HTTP/2 DATA frame in applications tha...
CVE-2026-59900
MEDIUM
[netty-codec-http2] Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, Netty's HTTP/2-to-HTTP/1.x translation layer (Http2StreamFrameToHttpObjectCodec and InboundHttp2ToHttpAdapter) fails to deduplicate or validate Host he...
AIKIDO-2026-240696
HIGH
[netty-codec-socks] Netty's SOCKS4 and SOCKS5 client encoders write domain, userid, and credential fields without rejecting null bytes or CRLF sequences. In SOCKS5 a null byte truncates the intended hostname, allowing domain spoofing, and null or CRLF in credentials can bypass authentication. In ...
AIKIDO-2026-179204
HIGH
[netty-codec-http] HttpServerCodec pairs each outbound response to a request by polling the recorded request method, including for 1xx interim responses. When pipelined GET and HEAD requests are combined with a client sending Expect: 100-continue, responses are mismatched to requests: the HEA...
AIKIDO-2026-705617
MEDIUM
[netty-codec-http] WebSocketServerExtensionHandler stores one queue entry for every inbound HTTP request and removes an entry only when a response is written. Nothing limits that per connection queue, including for requests that are not WebSocket upgrades. A client that pipelines requests faste...
AIKIDO-2026-293657
MEDIUM
[netty-codec-http] SpdySessionHandler accepts remote initiated SPDY streams up to Integer.MAX_VALUE because localConcurrentStreams has that default and no setter. A peer can send many SYN_STREAM frames that stay open and force unbounded heap and direct memory use until the process runs ou...
AIKIDO-2026-464032
MEDIUM
[netty-codec-http] HttpServerCodec in netty-codec-http records the method of each pipelined request that has not yet been answered. The first 32 methods fit in a bit field, and every later method is appended to methodOverflowQueue with no size limit. A client that pipelines many requests on...
AIKIDO-2026-805702
MEDIUM
[netty-codec-http] Netty silently truncates post-digit whitespace or control bytes in an HTTP chunk-size token. Other HTTP implementations may parse the same token differently, creating a message-framing discrepancy that enables request smuggling.
AIKIDO-2026-473000
MEDIUM
[netty-codec-http] Netty validates chunk extensions only when a semicolon marker is present. A carriage return embedded in a chunk-size line can bypass that validation, causing intermediaries and Netty to disagree about request boundaries and enabling HTTP request smuggling.
AIKIDO-2026-311541
MEDIUM
[netty-codec-http] RtspMethods.valueOf() trims trailing control bytes before looking up an RTSP method. A token such as PLAY\u0000 can therefore be interpreted differently by an upstream authorization layer and Netty, allowing a prohibited method to pass policy checks.
AIKIDO-2026-195206
MEDIUM
[netty-codec-http] Netty can accept malformed or split Transfer-Encoding values where chunked is not the final coding. Different HTTP components may then disagree about message framing, allowing a crafted request to be interpreted as multiple requests.
AIKIDO-2026-819978
MEDIUM
[netty-codec-http] HttpObjectDecoder in netty-codec-http accepts a Transfer-Encoding value when chunked appears but is not the final transfer coding. This is an incomplete fix for CVE-2026-42585. A header split across lines, or a value such as chunked, xchunked, is still decoded as chun...
CVE-2026-59901
MEDIUM
[netty-codec] Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, the Bzip2Decoder handler in Netty's compression codec pipeline is vulnerable to a denial-of-service attack through a malformed bzip2 stream that permanently capt...
CVE-2026-73508
MEDIUM
[netty-codec-dns] Netty is an asynchronous, event-driven network application framework. Prior to 4.1.136.Final and 4.2.16.Final, io.netty.handler.codec.dns.AbstractDnsRecord, io.netty.handler.codec.dns.DefaultDnsRecordDecoder.decodeRecord(), and io.netty.handler.codec.dns.DnsCodecUtil.decompressD...
AIKIDO-2026-942474
MEDIUM
[jetty-server] Jetty's form authentication stores the user's plaintext password inside SessionAuthentication. Applications that persist or serialize sessions can therefore write those credentials to storage or expose them through session replication.
AIKIDO-2026-980617
MEDIUM
[reactor-netty-http] reactor-netty-http can leak credentials during a WebSocket handshake redirect to a different origin. This happens when the HTTP client is explicitly configured to follow redirects. A remote party that triggers such a redirect can receive credentials meant for the original h...
AIKIDO-2026-718872
MEDIUM
[reactor-netty-http] reactor-netty-http can mis-evaluate the remote IP address when HAProxy Protocol is enabled. Access-control or logging decisions that trust that address may then use the wrong client identity. The issue only applies when the server is configured to use HAProxy Protocol. The ...
AIKIDO-2026-556582
LOW
[reactor-netty-http] reactor-netty-http consumes excessive memory when a client sends HTTP/1.1 pipelined requests on a single connection. A remote sender can degrade or exhaust the server by pipelining many requests. Availability of other connections is then reduced. The patch bounds memory use...
AIKIDO-2026-268979
MEDIUM
[reactor-core] reactor-core Flux.windowTimeout with fair backpressure can hang after a 20-bit index wrap on a long-lived stream. A client that keeps the stream open and manipulates read speed can stop element processing without an error. Held subscriptions then exhaust resources. The patch pr...
AIKIDO-2026-224455
MEDIUM
[reactor-core] A race in Flux.bufferTimeout with fair backpressure can cause the stream to hang when upstream items arrive during a flush, leaving items buffered with no timeout scheduled. An attacker who can influence delivery rate can exhaust subscriptions, resulting in denial of service.
AIKIDO-2026-592409
LOW
[reactor-netty-core] Due to a DNS resolver reuse flaw, clients created with different custom resolver settings can share a previously configured resolver, causing traffic to be resolved and routed to unintended destinations (a routing/bypass-type issue). It affects dynamically created HttpClient or TcpClient instances using custom DNS configuration.
🔗 Related Tasks
🤖 Remediation details

Security dependency update (Gradle, agent module)

This PR fixes the Netty, Reactor and Spring advisories in the agent module. The affected packages are netty-handler, netty-codec-http2, netty-codec-http, netty-codec-socks, netty-codec, netty-codec-dns, reactor-netty-http, reactor-netty-core, reactor-core and spring-web. Two direct compileOnly versions were bumped in agent/build.gradle, and agent/gradle.lockfile was regenerated by Gradle.

The Jetty advisories (jetty-security) and one low-severity Spring advisory remain open. The patched artifacts are not published in the configured repositories, so this PR cannot fix them.

io.netty:netty-handler

Transitive through reactor-netty-http. Bumping that parent from 1.2.18 to 1.3.9 moves it from 4.1.135.Final to 4.2.20.Final. That is above the required 4.1.137.Final and 4.2.17.Final.

io.netty:netty-codec-http2

Transitive through reactor-netty-http. Version 1.3.7 would only bring Netty 4.2.17, which is below the 4.2.18 / 4.1.138 floor. The parent was therefore set to 1.3.9, which resolves this package to 4.2.20.Final.

io.netty:netty-codec-http

Transitive through reactor-netty-http. The reactor-netty-http 1.3.9 bump resolves it to 4.2.20.Final. That is above the highest required fix, 4.2.18 / 4.1.138.

io.netty:netty-codec-socks

Transitive through reactor-netty-http (via the Netty proxy handler). The reactor-netty-http 1.3.9 bump resolves it to 4.2.20.Final. That is above the required 4.1.137 and 4.2.17.

io.netty:netty-codec

In 4.2, netty-codec is split into netty-codec-base and netty-codec-compression, so the plain netty-codec artifact no longer appears in the lockfile. The 4.2.20.Final split modules resolve through the same reactor-netty-http 1.3.9 bump. This removes the vulnerable 4.1.135 artifact.

io.netty:netty-codec-dns

Transitive through reactor-netty-http (via netty-resolver-dns). The reactor-netty-http 1.3.9 bump resolves it to 4.2.20.Final. That is above the required 4.1.136 and 4.2.16.

io.projectreactor.netty:reactor-netty-http

This is a direct compileOnly dependency. It was bumped from 1.2.18 to 1.3.9 in agent/build.gradle, which is above the 1.3.7 patched version. 1.3.9 was chosen over 1.3.7 because 1.3.7 pulls in Netty 4.2.17, which would leave some Netty advisories open. This is a minor bump on the same major line.

io.projectreactor.netty:reactor-netty-core

Transitive through reactor-netty-http. The parent bump to 1.3.9 moves it to 1.3.9, above the required 1.3.7.

io.projectreactor:reactor-core

Transitive through reactor-netty-http. The parent bump to 1.3.9 moves it from 3.7.19 to 3.8.9, above the required 3.8.7.

org.springframework:spring-web

This is a direct compileOnly dependency. It was bumped from 5.3.20 to 5.3.39, the newest 5.3.x release available in the configured repositories. This fixes the Spring advisories patched in 5.3.32 to 5.3.38. AIKIDO-2024-10361 needs 5.3.41, which is unreachable, and moving to 6.x would be a major bump. Spring siblings spring-core, spring-beans and spring-jcl moved with it.

Version changes

Package From To Why updated
io.projectreactor.netty:reactor-netty-http 1.2.18 1.3.9 Direct CVE fix; parent of the Netty and Reactor fixes
io.projectreactor.netty:reactor-netty-core 1.2.18 1.3.9 Transitive after reactor-netty-http bump
io.projectreactor:reactor-core 3.7.19 3.8.9 Transitive after reactor-netty-http bump
io.netty:netty-handler 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec-http2 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec-http 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec-socks 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec-dns 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec 4.1.135.Final removed (replaced by netty-codec-base / netty-codec-compression 4.2.20.Final) Netty 4.2 module split via reactor-netty-http
io.netty:netty-buffer 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-common 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-handler-proxy 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-resolver 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-resolver-dns 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-resolver-dns-classes-macos 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-resolver-dns-native-macos 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-transport 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-transport-classes-epoll 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-transport-native-epoll 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-transport-native-unix-common 4.1.135.Final 4.2.20.Final Transitive after reactor-netty-http bump
io.netty:netty-codec-base not present 4.2.20.Final New in Netty 4.2 split, via reactor-netty-http
io.netty:netty-codec-compression not present 4.2.20.Final New in Netty 4.2 split, via reactor-netty-http
io.netty:netty-codec-classes-quic not present 4.2.20.Final New transitive dependency of reactor-netty-http 1.3.9
io.netty:netty-codec-http3 not present 4.2.20.Final New transitive dependency of reactor-netty-http 1.3.9
org.jspecify:jspecify not present 1.0.1 New transitive dependency of reactor-netty-http 1.3.9
org.springframework:spring-web 5.3.20 5.3.39 Direct CVE fix
org.springframework:spring-core 5.3.20 5.3.39 Transitive after spring-web bump
org.springframework:spring-beans 5.3.20 5.3.39 Transitive after spring-web bump
org.springframework:spring-jcl 5.3.20 5.3.39 Transitive after spring-web bump
com.android.tools:r8 not present 9.1.31 Added to shadowR8 by Gradle lockfile regeneration; not a runtime dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants