GHSA-qv2v-m59f-v5fw
GitHub Security Advisory
Insecure randomness in socket.io
✓ GitHub Reviewed
HIGH
Has CVE
Advisory Details
Affected versions of `socket.io` depend on `Math.random()` to create socket IDs, and therefore the IDs are predictable. With enough information on prior IDs, an attacker may be able to guess the socket ID and gain access to socket.io servers without authorization.
## Recommendation
Update to v0.9.7 or later.
Affected Packages
npm
socket.io
Affected versions:
0
(fixed in 0.9.7)
Related CVEs
Key Information
7.5
/10
Dataset
Last updated: July 3, 2025 6:26 AM
Data from GitHub Advisory Database. This information is provided for research and educational purposes.