CWE-1385: Missing Origin Validation in WebSockets
Also known as: Cross-Site WebSocket hijacking (CSWSH)
The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.
Last updated
Overview
WebSockets provide a bi-directional low latency communication (near real-time) between a client and a server. WebSockets are different than HTTP in that the connections are long-lived, as the channel will remain open until the client or the server is ready to send the message, whereas in HTTP, once the response occurs (which typically happens immediately), the transaction completes. A WebSocket can leverage the existing HTTP protocol over ports 80 and 443, but it is not limited to HTTP. WebSockets can make cross-origin requests that are not restricted by browser-based protection mechanisms such as the Same Origin Policy (SOP) or Cross-Origin Resource Sharing (CORS). Without explicit origin validation, this makes CSRF attacks more powerful.
Real-world CVEs
29 recorded CVEs are caused by CWE-1385 (Missing Origin Validation in WebSockets). The highest-severity and most recent are shown first. 10 new CWE-1385 CVEs have been recorded so far in 2026 (9 in 2025).