Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to malicious page
-
DeliveryBrowser opens WebSocket to gateway
-
ExploitHandshake accepted without Origin check
-
ExecutionVictim cookies auto-attached to connection
-
PersistInteract with backend as victim
-
ImpactExfiltrate credentialed backend data
Vulnerability Assessment
| Exploitation Conditions | Exploitable ONLY if the application exposes a route with a ws or wss URI through the gateway - gateways without WebSocket routes are not affected. The attack additionally requires: (1) a victim with an active, credentialed session to the backend so the browser auto-attaches cookies; (2) victim user interaction, i.e. visiting an attacker-controlled web page (UI:R); and (3) a pre-patch/default configuration, since fixed versions reject cross-origin handshakes with 403 by default. These factors - exposed WebSocket route, authenticated victim session, and required user interaction - are the real limiters on exploitation despite the network, unauthenticated vector; they justify the High attack complexity. |
| Impact | This is a Cross-Site WebSocket Hijacking (CSWSH) flaw in Spring Cloud Gateway's WebsocketRoutingFilter, rated moderate (CVSS 5.9, CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N). The signals are internally consistent and point to a real-but-conditional issue rather than a drop-everything emergency. The vector is network and unauthenticated (PR:N), which raises reach, but exploitation depends on victim user interaction (UI:R) and on the specific precondition that the gateway exposes a ws/wss route - reflected in the high attack complexity (AC:H). No EPSS score, no CISA KEV listing, and no confirmed working exploit code were provided; the HeroDevs reference is a third-party advisory, not a published PoC, so there is no evidence of active exploitation. The vendor-assigned priority is 'this_month' (not act_now/emergency), aligning with the patch-available status and the conditional nature of the flaw. Net: prioritize patching for any deployment that actually proxies WebSocket routes, but treat it as scheduled remediation rather than an active-exploitation fire drill. Note one tension to verify: confidentiality is rated High (C:H) because an attacker can ride the victim's auto-attached credentials to read backend responses, yet integrity is only Low and availability None - the real impact scales with what the exposed backend WebSocket endpoint does. |
| Exploit ScenarioDerived | An attacker lures an authenticated user of a Spring Cloud Gateway-fronted application to a malicious web page; that page's JavaScript opens a WebSocket to the gateway, and because the Origin header is not validated the handshake is accepted with the victim's cookies automatically attached. The attacker's page can then interact with the backend WebSocket service as the victim, reading responses that use the victim's session. No public exploit code was identified at time of analysis, and success requires the victim to be logged in and to visit the attacker-controlled page. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Cross-Site WebSocket Hijacking (CSWSH) in Spring Cloud Gateway lets a malicious web page cause a victim's browser to open a WebSocket connection through the gateway to a backend service using automatically attached credentials such as cookies, but only where the application exposes a ws or wss route. Affected lines are 3.1.x before 3.1.15, 4.2.x before 4.2.11, 4.3.x before 4.3.7, and 5.0.x before 5.0.5, with EUVD additionally listing 5.0.x before 5.0.4.1. Vendor patches are available and fixed versions reject cross-origin handshakes with 403 by default; no public exploit was identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to 3.1.15, 4.2.11, 4.3.7, or 5.0.5; EUVD also lists 5.0.4.1 as a fixed 5.0 branch version. Fixed versions reject cross-origin WebSocket handshakes with 403 Forbidden by default. If legitimate cross-origin WebSocket clients must be supported after upgrading, configure allowed origins narrowly using spring.cloud.gateway.server.webflux.websocket.allowed-origins or spring.cloud.gateway.server.webflux.websocket.allowed-origin-patterns; on the 4.x and 3.1.x lines use spring.cloud.gateway.websocket.*. If immediate upgrade is not possible, eliminate the affected configuration by removing or disabling ws/wss routes until patched. Vendor advisory: https://spring.io/security/cve-2026-59428.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Cloud Gateway's WebsocketRoutingFilter handles WebSocket upgrade requests for routes with ws or wss URIs. WebSocket handshakes are not governed by the browser same-origin policy or CORS; the browser sends an Origin header and relies on the server to accept or reject the handshake. The filter did not validate Origin by default, so a malicious page could initiate a cross-origin WebSocket through the gateway to a backend and rely on the browser to attach cookies for that backend, enabling CSWSH-style access to data available over the WebSocket. No CWE identifier is supplied; the root-cause class is missing Origin validation for WebSocket handshakes. The CVSS vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N reflects network reachability without prior authentication but high complexity and required user interaction, consistent with needing a victim with an active credentialed session to visit an attacker page and an exposed ws/wss route. Fixed releases reject cross-origin handshakes with 403 Forbidden by default and add allowed-origins/allowed-origin-patterns properties. CPE data identifies the affected product as cpe:2.3:a:spring:spring_cloud_gateway:*:*:*:*:*:*:*:*.
Know when Spring Cloud Gateway gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
Network and unauthenticated (AV:N/PR:N), but AC:H and UI:R reflect the needed ws/wss route, an authenticated victim session, and a victim visiting a malicious page; C:H from credentialed data read, I:L, A:N.
Primary rating from Vendor (vmware).
CVSS VectorVendor: vmware
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Spring Cloud Gateway
View allIn spring cloud gateway versions prior to 3.1.1+ and 3.0.7+ , applications are vulnerable to a code injection attack whe
Server-side request forgery (SSRF) in Spring Cloud Gateway's JsonToGrpcGatewayFilterFactory allows an authenticated gate
Origin validation failure in Spring Cloud Gateway (WebMVC and WebFlux Server variants) allows remote attackers to spoof
SSL bundle configuration bypass in VMware Spring Cloud Gateway 4.2.0 allows unaneticated remote attackers to compromise
Spring Cloud Gateway can serve cached responses that upstreams explicitly marked private, so when LocalResponseCache is
Spring Cloud Gateway's global LocalResponseCache can return a cached response to a caller that matches a different route
Spring Cloud Gateway leaks a Netty-backed gRPC ManagedChannel on every HTTP request that matches a route configured with
Applications using Spring Cloud Gateway are vulnerable to specifically crafted requests that could make an extra request
In spring cloud gateway versions prior to 3.1.1+ , applications that are configured to enable HTTP2 and no key store or
EUVD-2026-140910
NVD
CVE.org
GitHub PoC
Exploit-DB