MODERATE

CVE-2026-59390

Spring Framework No Origin Validation If WebSocket Handling Configured Directly

Description

Spring Framework's WebSocket support does not validate the Origin header by default if WebSocketHttpRequestHandler is configured directly by the application, rather than through the WebSocket config via WebSocketHandlerRegistry.

An application is affected if it configures WebSocket handling this way without adding an origin check. In that case, a page served from a different origin can open a WebSocket connection resulting in cross-site WebSocket hijacking. Applications that use the WebSocket config via WebSocketHandlerRegistry are not affected.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.springframework » spring-webflux
<= 5.2.26.RELEASE>= 5.3.0, <= 5.3.50>= 6.0.0, <= 6.0.32>= 6.1.0, <= 6.1.29>= 6.2.0, <= 6.2.20>= 7.0.0, < 7.0.11
7.0.11
org.springframework » spring-websocket
<= 5.2.26.RELEASE>= 5.3.0, <= 5.3.50>= 6.0.0, <= 6.0.32>= 6.1.0, <= 6.1.29>= 6.2.0, <= 6.2.20>= 7.0.0, < 7.0.11
7.0.11

Blast radius

2affected artifacts
552affected versions
8,690dependent artifacts (est.)
350,825dependent versions

81% of the dependent artifacts (7,103) still pull an affected version in their latest release.

DepthDependent versions
Direct
34,904
2 hops
97,473
3 hops
89,514
4 hops
98,496
5 hops
27,434
6 hops
3,004

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.