Spring Cloud Gateway's WebsocketRoutingFilter does not check the Origin header during WebSocket handshakes, allowing cross-origin WebSocket connections by default. This can enable a malicious web page to cause a victim's browser to open a WebSocket connection through the gateway to a backend service, potentially using the victim's credentials such as cookies. The issue affects applications exposing routes with ws or wss URIs through the gateway. The gateway now rejects cross-origin WebSocket handshakes by default and provides configuration properties to allow specific origins.