Live threats

All CVEs / Socket

CVE-2017-16031Socket.io

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jun 4, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-330
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Socket.io.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm socket.io < 0.9.7 0.9.7 npm install socket.io@0.9.7

Per OSV / GitHub Advisories (GHSA-qv2v-m59f-v5fw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
socketsocket.io≤ 0.9.6

Official sources

References

Links published by the sources. Open them with care.