NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
HIGH severity

Insecure randomness in socket.ioGHSA-qv2v-m59f-v5fw

HIGHFix: socketio/socket.io#857

GHSA-qv2v-m59f-v5fw is a high-severity (CVSS 7.5) Insufficient Random Values vulnerability in socket.io. A fix is available for socket.io — see the affected versions and patch details below.

Also known asCVE-2017-16031
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Nov 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
2.0%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs80th percentile — riskier than 80% of all scored CVEsHighest risk
0.00%0.83%1.67%2.50%0.4%2.0%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

1 pkg affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

12Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
socket.ionpm
26.3Mdownloads / week

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 Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmsocket.ioall versions0.9.7npm install socket.io@0.9.7

Affected Products

1 product · 1 configurations
Application
socket.iosocket
≤ 0.9.6
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for socket.io, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update socket.io to 0.9.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-qv2v-m59f-v5fw is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is GHSA-qv2v-m59f-v5fw in your dependencies?

Find it across npm, including transitive dependencies.

Insecure randomness in socket.io (High 7.5)