Missing Origin Validation in WebSockets in Spring Framework - CVE-2026-59390

 

Missing Origin Validation in WebSockets in Spring Framework - CVE-2026-59390

Published: November 20, 2026


Vulnerability identifier: #VU168623
CSH Severity: Medium
CVSS v4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59390
CWE-ID: CWE-1385
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to hijack a victim's WebSocket connection across origins and potentially read sensitive data or send unauthorized messages.

The vulnerability exists due to missing Origin header validation in WebSocketHttpRequestHandler when an application configures the handler directly without an origin check. A remote attacker can induce a victim to visit a page on another origin to open a WebSocket connection in the victim's browser.


Affected software

Spring Framework

How to mitigate CVE-2026-59390

Install security update from vendor's website.

Spring Framework - addressed in versions 5.2.27, 5.3.51, 6.0.33, 6.1.30, 6.2.21, 7.0.10.1, 7.0.11

External References

Related Security Bulletins