{"cve":"CVE-2017-16031","nvd":{"published":"2018-06-04T19:29:01.727","modified":"2026-06-17T01:08:41.283","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-330"],"references":["https://github.com/socketio/socket.io/commit/67b4eb9abdf111dfa9be4176d1709374a2b4ded8","https://github.com/socketio/socket.io/issues/856","https://github.com/socketio/socket.io/pull/857","https://nodesecurity.io/advisories/321","https://github.com/socketio/socket.io/commit/67b4eb9abdf111dfa9be4176d1709374a2b4ded8"],"products":["socket:socket.io"],"source":"nvd","synced_at":"2026-10-19T20:50:40.212176939+00:00"},"epss":{"cve":"CVE-2017-16031","score":0.01969,"percentile":0.80391,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qv2v-m59f-v5fw","url":"https://osv.dev/vulnerability/GHSA-qv2v-m59f-v5fw","summary":"Insecure randomness in socket.io","modified":"2023-11-08T03:59:00.679957Z","packages":[{"ecosystem":"npm","name":"socket.io","purl":"pkg:npm/socket.io","ranges":["<0.9.7"],"fixed":["0.9.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}