All reports
High

Insecure randomness in socket.io

Affected versions

Affected versions
<= 0.9.6
Fixed version
0.9.7

Exploitation

CVE-2017-16031

Probability of exploitation in the next 30 days: 1.93%

FIRST EPSS · 2026-11-22

Description

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.

Links