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
CWE-1385 (Missing Origin Validation in WebSockets) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
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).
Real-world CVEs
45 recorded CVEs are caused by CWE-1385 (Missing Origin Validation in WebSockets). The highest-severity and most recent are shown first. 26 new CWE-1385 CVEs have been recorded so far in 2026 (9 in 2025).