# CVE-2026-59428: Spring Cloud Gateway WebSocket Routing Filter Does Not Enforce Same-Origin by Default

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Record: https://cvemate.com/vulnerability/CVE-2026-59428 · JSON: https://cvemate.com/vulnerability/CVE-2026-59428/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
- EPSS: 0.375%, percentile 33.537%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- 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

## References

- <https://spring.io/security/cve-2026-59428>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N&version=3.1>

---

Data as of 2026-12-05T03:48:38.154Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
