Reactor Netty's WebSocket client silently forwards credentials during redirect-following — a behavior inherited from its HTTP client without warning or separation. When you configure a Reactor Netty client to follow redirects on HTTP requests, that same setting propagates to WebSocket upgrade handshakes without any indication that the security implications differ. This means a redirect to an untrusted origin during a WebSocket handshake will carry authentication tokens or cookies that the developer intended only for the original destination.

The critical failure here isn't the credential leak itself — it's that the framework bundles two fundamentally different operational contexts under a single configuration surface. HTTP redirect-following is a convenience behavior for request/response traffic. WebSocket upgrades involve protocol negotiation and Origin-header validation that HTTP redirects ignore entirely. When Reactor Netty propagates the HTTP client's redirect-following setting to the WebSocket upgrade path without signaling the boundary crossing, it creates a hidden trap: developers enabling redirect handling for legitimate HTTP work inadvertently enable credential forwarding during protocol upgrades.

This pattern has appeared across multiple HTTP client libraries over the years — curl, OkHttp, Node.js implementations — because WebSocket support was retrofitted onto existing HTTP infrastructure without auditing inherited behaviors. The WebSocket RFC specifies origin checking as a SHOULD rather than a MUST, which means protocol-level validation could theoretically catch cross-origin handshake attempts but often doesn't. Reactor Netty's implementation bypasses this safeguard entirely.

What to check: audit any Reactor Netty client instances configured for WebSocket traffic. If followRedirects() is enabled anywhere in your client chain, WebSocket upgrades will inherit that behavior. The most direct mitigation is to use separate client instances for HTTP and WebSocket traffic, or to explicitly disable redirect-following on any client used for WebSocket upgrades. If your deployment uses the same client for both protocols, review whether credentials in the HTTP path could be inadvertently forwarded through the WebSocket path during redirects.

Monitor for unusual WebSocket upgrade requests reaching servers that don't expect them, particularly if those requests carry authentication headers or cookies that should only go to your primary origin. The downstream risk exceeds a single credential leak — a compromised WebSocket connection with valid auth can provide persistent access to real-time data streams, not just one response payload.