cvelo
P3 · MediumCVSS 5.9EPSS 0.4%

Spring Framework No Origin Validation If WebSocket Handling Configured Directly

  • CVE-2026-59390
  • GHSA-f5xp-99gg-gpxm
  • EUVD-2026-140881

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.

Text from the CVE.org record.

Affected

  • Spring Spring Framework

    • from 7.0.0 to before 7.0.10.1
    • from 6.2.0 to before 6.2.21
    • from 6.1.0 to before 6.1.30
    • from 6.0.0 to before 6.0.33
    • from 5.3.0 to before 5.3.51
    • before 5.2.27.RELEASE
    • from 7.0.0 to before 7.0.11

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.