CVE-2026-59428
Received Received - Intake

Cross-Origin WebSocket Handshake in Spring Cloud Gateway

Vulnerability report for CVE-2026-59428, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: VMware

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-02
AI Q&A
2026-12-02
EPSS Evaluated
N/A
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves Spring Cloud Gateway's WebsocketRoutingFilter not enforcing the same-origin policy for WebSocket handshakes. Browsers send an Origin header but rely on servers to reject cross-origin requests. Since the gateway does not validate this header by default, a malicious webpage can trick a victim's browser into opening a WebSocket connection to a backend service through the gateway, potentially using stored credentials like cookies.

Detection Guidance

To detect this vulnerability, check if your Spring Cloud Gateway routes include WebSocket endpoints (ws or wss URIs). Inspect gateway logs for WebSocket handshake attempts without Origin header validation. Use network monitoring tools to observe unexpected WebSocket connections to backend services.

Impact Analysis

If you use Spring Cloud Gateway with routes exposing WebSocket connections (ws or wss URIs), an attacker could exploit this to make your browser connect to internal services via the gateway. This may lead to unauthorized access to sensitive data or actions, especially if the browser automatically sends cookies or other credentials.

Compliance Impact

This vulnerability could lead to unauthorized data exposure or access, violating confidentiality requirements in GDPR and HIPAA. Unauthorized WebSocket connections might expose personal or health data, leading to compliance breaches and potential legal consequences.

Mitigation Strategies

Upgrade Spring Cloud Gateway to a fixed version (5.0.5, 5.0.4.1, 4.3.7, 4.2.11, or 3.1.15) to enable default Origin header validation. If specific origins must be allowed, configure spring.cloud.gateway.server.webflux.websocket.allowed-origins or allowed-origin-patterns.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-59428. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...