{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2017-16031","id":"CVE-2017-16031","title":"Insecure randomness in socket.io","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.","descriptionLong":"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.","published":"2018-06-04T19:00:00.000Z","updated":"2026-10-20T10:48:16.171658948Z","reserved":"2017-10-29T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"hackerone","metric":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["HackerOne socket.io node module"],"affectedProducts":[{"vendor":"HackerOne","product":"socket.io node module","defaultStatus":null,"versions":[{"status":"affected","version":"<=0.9.6"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"socket.io","purl":"pkg:npm/socket.io","ranges":["<0.9.7"],"fixed":["0.9.7"],"advisory":"GHSA-qv2v-m59f-v5fw"}],"cwes":["CWE-330"],"aliases":["GHSA-qv2v-m59f-v5fw"],"references":[{"url":"https://github.com/socketio/socket.io/commit/67b4eb9abdf111dfa9be4176d1709374a2b4ded8","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/socketio/socket.io/issues/856","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/socketio/socket.io/pull/857","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nodesecurity.io/advisories/321","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16031","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-qv2v-m59f-v5fw","tags":["advisory"]},{"url":"https://github.com/socketio/socket.io","tags":["package"]},{"url":"https://www.npmjs.com/advisories/321","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01932,"epssPercentile":0.80443,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2017-16031","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16031","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2017-16031","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qv2v-m59f-v5fw","ok":true,"note":"GHSA-qv2v-m59f-v5fw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2017-16031","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}