Numeric Truncation Error in Mongoose - #VU168685
Published: November 20, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject arbitrary WebSocket messages before authentication and potentially bypass application authentication to gain unauthorized access to protected data or controls.
The vulnerability exists due to numeric truncation in the WebSocket frame parser when it converts a 64-bit payload length to a 32-bit value before checking the length limit. A remote attacker can send malformed WebSocket traffic to desynchronize the parser and cause the application to accept injected messages as legitimate.