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)
| Artifact | Affected versions | Fixed 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
81% of the dependent artifacts (7,103) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springframework.boot » spring-boot-starter-amqp691 usages
- com.vaadin » vaadin-core640 usages
- com.vaadin » vaadin-maven-plugin600 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.springframework.boot » spring-boot-websocket428 usages
- org.springframework.amqp » spring-rabbit405 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- com.vaadin » vaadin378 usages
- org.apereo.cas » cas-server-core-api-test-category335 usages
- org.springframework.cloud » spring-cloud-starter-gateway325 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
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.
