CVE-2026-59428

MediumCVSS 5.9/10Last modified Dec 2, 2026

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.

Metrics

CVSS 3.1 5.9/10CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 2, 2026
Last modified
Dec 2, 2026
NVD status
Awaiting Analysis

Related CVEs from 2026

CVE-2026-594293.7Applications may be vulnerable to a Regular Expression Denial of Service (ReDoS) attack if they use PathPattern with a pattern that containsCVE-2026-59437.8Document structural anomalies caused inconsistencies between page element relationships and internal index states. When scripts triggered doCVE-2026-594305.6Applications which accept user-supplied Spring Expression Language (SpEL) expressions and evaluate them with a SimpleEvaluationContext may bCVE-2026-594315.3Applications which accept user-supplied Spring Expression Language (SpEL) expressions may be vulnerable to a Denial of Service (DoS) attack.CVE-2026-594326.5When mapping inbound record headers, JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper (used by the default message converters) deserializeCVE-2026-594337.5The Eureka Server dashboard in Spring Cloud Netflix renders the URLs of peer replicas in its HTML. Credentials embedded in peer service URLsCVE-2026-594344.4Spring Cloud Kubernetes parses ConfigMap and Secret entries ending in .yaml with a SnakeYAML Yaml instance created without a SafeConstructorCVE-2026-594357.5Spring Cloud Config Server includes the full URI of its backend repository in the name of every property source it returns. When the Git or CVE-2026-594364.4Spring Cloud Config Server can be configured to use property-based SSH settings for its Git repositories by setting spring.cloud.config.servCVE-2026-594374.4When Spring Cloud Config Server uses property-based SSH settings ( spring.cloud.config.server.git.ignoreLocalSshSettings=true ) for a Git reCVE-2026-594386.6MongoDbMessageStore exposes an addAllowedPatterns() API that restricts which classes may be deserialized from stored ErrorMessage payloads. CVE-2026-594393.1When an inbound Message payload is a JSON array, framework provides no control over its size. This could lead to OOM errors.
CVE-2026-59428: Medium severity, CVSS 5.9 | Vulnix