Security mailing lists by PureSourceCode

CVE-2026-59428

MEDIUM 5.9CVSS 3.1

Spring Cloud Gateway WebSocket Routing Filter Does Not Enforce Same-Origin by Default

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.

Published
2 Dec 2026
Last modified
2 Dec 2026
Assigned by
security@vmware.com
NVD status
Awaiting Analysis
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@vmware.com (Secondary) CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
CVE List vmware CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Spring Spring Cloud Gateway >= 5.0.0, < 5.0.4.1; >= 4.3.0, < 4.3.7; >= 4.2.0, < 4.2.11; >= 3.1.0, < 3.1.15; >= 5.0.0, < 5.0.5 5.0.4.1, 4.3.7, 4.2.11, 3.1.15, 5.0.5

References

History

  • 2 Dec 2026 19:36 UTC · NVD: status Received → Awaiting Analysis
  • 2 Dec 2026 08:19 UTC · NVD: first stored (published 2 Dec 2026)
  • 2 Dec 2026 07:42 UTC · CVE List: first stored (published 2 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.