Skip to content
OpenAdvisories
High · 7.5 CVE-2017-16031 EUVD-2018-0772GHSA-qv2v-m59f-v5fw

Insecure randomness in socket.io

Published Jun 4, 2018 · Updated Sep 16, 2024 · Assigned by hackerone

Description

Socket.io is a realtime application framework that provides communication via websockets. Because socket.io 0.9.6 and earlier depends on `Math.random()` to create socket IDs, the IDs are predictable. An attacker is able to guess the socket ID and gain access to socket.io servers, potentially obtaining sensitive information.

Affected products

VendorProductAffectedFixed
HackerOne socket.io node module <=0.9.6 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm socket.io < 0.9.7 0.9.7 GHSA-qv2v-m59f-v5fw

References