CVE-2026-47848
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Reactor Netty is the reactive networking layer of Project Reactor: it wraps Netty in a Reactive Streams API and supplies the non-blocking HTTP client and server that Spring WebFlux runs on. The reactor-netty-http module carries that HTTP client and server, including the client used to open WebSocket connections.
An information exposure vulnerability (CVE-2026-47848) has been identified in the Reactor Netty HTTP client, which allows attackers to obtain credentials when a WebSocket handshake is redirected to a different origin. When the client is configured to follow redirects, the Authorization, Proxy-Authorization and Cookie headers of the original request are sent on to the redirect target.
Per OWASP: Access control enforces policy such that users cannot act outside of their intended permissions. Failures typically lead to unauthorized information disclosure, modification, or destruction of all data or performing a business function outside the user's limits.
This issue affects multiple versions of Reactor Netty.
Details
Module Info
- Product: Reactor Netty
- Affected packages:
io.projectreactor.netty:reactor-netty-http - Affected versions: <=1.0.52, >=1.1.0 <=1.2.18, >=1.3.0 <=1.3.6
- GitHub repository: https://github.com/reactor/reactor-netty
- Published packages: https://central.sonatype.com/artifact/io.projectreactor.netty/reactor-netty-http
- Package manager: Maven
- Fixed in:
- OSS Reactor Netty 1.3.7
- NES for Project Reactor v1.0.50, v1.2.20
Vulnerability Info
This Medium-severity vulnerability is found in the io.projectreactor.netty:reactor-netty-http package in multiple versions of Reactor Netty. When HttpClient is configured with followRedirect, each redirected request is prepared again in HttpClientConnect's requestWithBody. For a redirect to a different URI, or from HTTPS to HTTP, that method removes the Expect, Cookie, Authorization and Proxy-Authorization headers and registers the redirect request consumer. For a WebSocket request, however, the method returns from its WebSocket branch before it reaches that code:
ch.listener().onStateChange(ch, HttpClientState.REQUEST_PREPARED);
if (websocketClientSpec != null) {
...
Mono<Void> result =
Mono.fromRunnable(() -> ch.withWebsocketSupport(websocketClientSpec));
if (handler != null) {
result = result.thenEmpty(Mono.fromRunnable(() -> Flux.concat(handler.apply(ch, ch))));
}
return result;
}
Consumer<HttpClientRequest> consumer = null;
if (fromURI != null && (!toURI.equals(fromURI) || (fromURI.isSecure() && !toURI.isSecure()))) {
if (handler instanceof RedirectSendHandler) {
headers.remove(HttpHeaderNames.EXPECT)
.remove(HttpHeaderNames.COOKIE)
.remove(HttpHeaderNames.AUTHORIZATION)
.remove(HttpHeaderNames.PROXY_AUTHORIZATION);
}
...
}
...
ch.redirectRequestConsumer(consumer);
A WebSocket handshake that receives a redirect is therefore replayed against the new location with the original request headers intact, and any user-supplied redirect request consumer is never applied. A server that can answer the handshake with a redirect, such as a compromised or malicious endpoint or one with an open redirect, can send the client to an origin the attacker controls and read the bearer tokens, basic credentials, proxy credentials and cookies that were meant only for the original host. On an HTTPS to HTTP redirect the same headers also cross the network in clear text. The issue only arises when followRedirect is enabled for the WebSocket client; HttpClient does not follow redirects by default.
Mitigation
Only recent versions of Reactor Netty are community-supported. Older release lines are End-of-Life and will not receive community updates addressing this issue. For more information, see here.
Users of the affected components should apply one of the following mitigations:
- Upgrade Reactor Netty to a currently supported release containing the fix.
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- Yu Bao from PayPal Cyber Security Team (finder)
- Arpit Jain (finder)
