CVE-2026-59428: Spring Cloud Gateway WebSocket Routing Filter Does Not Enforce Same-Origin by Default

Published Dec 2, 2026
·
Updated

Spring Cloud Gateway's WebsocketRoutingFilter accepts WebSocket handshakes without checking the Origin header. Browsers do not apply the same-origin policy or CORS to WebSocket handshakes. They only send the Origin header and rely on the server to accept or reject the request. Because the gateway does not reject cross-origin handshakes by default, a malicious web page can cause a victim's browser to open a WebSocket connection through the gateway to a backend service, using any credentials the browser attaches automatically, such as cookies.

Applications are affected only if they expose a route with a ws or wss URI through the gateway. Spring Cloud Gateway now rejects cross-origin WebSocket handshakes by default with a 403 Forbidden response, and provides the spring.cloud.gateway.server.webflux.websocket.allowed-origins and spring.cloud.gateway.server.webflux.websocket.allowed-origin-patterns properties ( spring.cloud.gateway.websocket. for the 4.x and 3.1.x lines) to allow specific origins.

Affected Software

1 affected component
VMware Spring Cloud Gateway

Event History

Dec 2, 2026
CVE Published
via MITRE·07:12 AM
Data Sourced
via MITRE·07:12 AM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Only applications that expose a route with a ws or wss URI through Spring Cloud Gateway are affected. Exploitation also depends on a victim visiting a malicious web page and having browser-attached credentials, such as cookies, accepted by the backend connection.

2

What does an attacker need to exploit it?

An attacker needs to get a victim to load a malicious web page that initiates a cross-origin WebSocket handshake through the gateway. No attacker authentication is required, but exploitation requires browser interaction and relies on credentials that the victim's browser attaches automatically.

3

What behavior changes after applying the fix?

The gateway rejects cross-origin WebSocket handshakes by default with HTTP 403 Forbidden. Specific trusted origins can be permitted with spring.cloud.gateway.server.webflux.websocket.allowed-origins or spring.cloud.gateway.server.webflux.websocket.allowed-origin-patterns; the 4.x and 3.1.x lines use the spring.cloud.gateway.websocket.* property prefix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203