GHSA-w67g-5rqw-f597Medium▾ SunlitGorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key
▾ Sunlit zone — Low / medium · no exploitation signal
impact 27.5 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
gorilla/websocket used math/rand (cryptographically weak pseudo-random number generator) to generate WebSocket frame mask keys prior to commit d67f4185. WebSocket masking keys MUST be unpredictable to prevent frame content injection attacks. math/rand produces deterministic output when seeded with a known value, enabling an attacker to predict or recover mask keys and inject content into WebSocket connections.
Type: Use of Cryptographically Weak Pseudo-Random Number Generator Fix: Replaced math/rand with crypto/rand (commit d67f4185, released in v1.5.3) Credit: bounty-hunter v6.0 silent-fix detection
github.com/gorilla/websocket < 1.5.3Upgrade to a patched release:
github.com/gorilla/websocket 1.5.3Connected by shared product, vendor, weakness, or advisory.
GO-2026-6278NoneGorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket
CVE-2025-66565Critical· 9.8Fiber Utils is a collection of common functions created for Fiber
CVE-2025-47909Mediumgithub.com/gorilla/csrf improperly validates TrustedOrigins allowing CSRF attacks
CVE-2024-37298High· 7.5Potential memory exhaustion attack due to sparse slice deserialization
CVE-2026-102813Medium· 6.1Administrator Password Reset Through the Verification-Code Interface in TP-Link RE305
CVE-2026-19742Low· 3.7IPv6 stable and temporary interface identifiers derived from a non-cryptographic PRNG secret key