mediumVulnerability

GHSA-w67g-5rqw-f597

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

Properties

ghsa_id
GHSA-w67g-5rqw-f597
severity
medium
summary
Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key
cve_id
GHSA-w67g-5rqw-f597
is_ghsa_only
true
ghsa_published
2026-08-24T21:00:54Z
source_url
https://github.com/advisories/GHSA-w67g-5rqw-f597
ghsa_updated
2026-08-24T21:00:54Z

Related Entities (4)

VULNERABLE_TO (1)

[Software]go/github.com/gorilla/websocket

AFFECTS (1)

[Software]go/github.com/gorilla/websocket

HAS_WEAKNESS (1)

[Weakness]Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-w67g-5rqw-f597 — Ninja Signal Threat Intelligence | Ninja Signal