Spring Cloud Gateway accepts cross-origin WebSocket handshakes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Spring Cloud Gateway is affected from 3.1.0 before 3.1.15, from 4.2.0 before 4.2.11, from 4.3.0 before 4.3.7, from 5.0.0 before 5.0.4.1, and from 5.0.0 before 5.0.5. The WebsocketRoutingFilter accepts WebSocket handshakes without checking the Origin header. A malicious web page can make a victim's browser open a WebSocket connection through the gateway to a backend service, using credentials the browser attaches automatically, such as cookies. Only applications that expose a ws or wss route through the gateway are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring Cloud Gateway | 5.0.0 to before 5.0.4.1; 4.3.0 to before 4.3.7; 4.2.0 to before 4.2.11; 3.1.0 to before 3.1.15; 5.0.0 to before 5.0.5 | 5.0.4.1, 4.3.7, 4.2.11, 3.1.15, 5.0.5 | Patch available | CNA |
- Spring Cloud Gateway VendorVMware Affected 5.0.0 to before 5.0.4.1; 4.3.0 to before 4.3.7; 4.2.0 to before 4.2.11; 3.1.0 to before 3.1.15; 5.0.0 to before 5.0.5 Fixed in 5.0.4.1, 4.3.7, 4.2.11, 3.1.15, 5.0.5 Patch available CNA
Remediation
Upgrade Spring Cloud Gateway to 3.1.15, 4.2.11, 4.3.7, 5.0.4.1 or 5.0.5, depending on the release line in use. The fixed versions reject cross-origin WebSocket handshakes by default with a 403 Forbidden response, and the spring.cloud.gateway.server.webflux.websocket.allowed-origins and allowed-origin-patterns properties allow specific origins.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
- Fix · CNA Spring Cloud Gateway (Spring) Fixed in 5.0.4.1, 4.3.7, 4.2.11, 3.1.15, 5.0.5
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Spring Cloud Gateway 3.1.15, 4.2.11 and 3 more versions
2 records Highest priority Priority MEDIUM 2 MEDIUM
Other records, highest priority first
- TI-2026-101996 Spring Cloud Gateway JsonToGrpc filter leak causes denial of servicePriority MEDIUM 48
Timeline
- 2026-12-02 Threatist record created from CVE-2026-59428
- 2026-12-02 Alias added: GHSA-w26r-hx8m-x45v
References
More VMware vulnerabilities
- TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
- TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-59428 · CVE Program
- CVE-2026-59428 · NVD
- GHSA-w26r-hx8m-x45v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences