Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. socket.io
  4. ›
  5. CVE-2017-16031

CVE-2017-16031: Use of Insufficiently Random Values

June 4, 2018 (updated July 31, 2018)

Socket 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.

References

  • github.com/socketio/socket.io/commit/67b4eb9abdf111dfa9be4176d1709374a2b4ded8
  • github.com/socketio/socket.io/issues/856
  • github.com/socketio/socket.io/pull/857
  • nvd.nist.gov/vuln/detail/CVE-2017-16031

Code Behaviors & Features

Detect and mitigate CVE-2017-16031 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.9.6

Fixed versions

  • 0.9.7

Solution

Upgrade to version 0.9.7 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-330: Use of Insufficiently Random Values

Source file

npm/socket.io/CVE-2017-16031.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.