CVE-2026-59390 PUBLISHED

Spring Framework No Origin Validation If WebSocket Handling Configured Directly

Assigner: vmware
Reserved: 04.07.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
CVSS Score: 5.9

Product Status

Vendor Spring
Product Spring Framework
Versions
  • affected from 7.0.0 to 7.0.10.1 (excl.)
  • affected from 6.2.0 to 6.2.21 (excl.)
  • affected from 6.1.0 to 6.1.30 (excl.)
  • affected from 6.0.0 to 6.0.33 (excl.)
  • affected from 5.3.0 to 5.3.51 (excl.)
  • affected from 0 to 5.2.27.RELEASE (excl.)
  • affected from 7.0.0 to 7.0.11 (excl.)

Credits

  • This issue was discovered by Xint, reported via Project Canopy.

References