ADVISORIES

GitHub Advisory Database

GHSA-qv2v-m59f-v5fw

Insecure randomness in socket.io

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

EcosystemPackageAffected versions
npmsocket.io
All versions before 0.9.7 (fixed in 0.9.7)

References