Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. socket.io
  4. ›
  5. GMS-2012-4

GMS-2012-4: Insecure randomness

April 26, 2012

Because socket.io 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

Code Behaviors & Features

Detect and mitigate GMS-2012-4 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 v0.9.7 or later.

Source file

npm/socket.io/GMS-2012-4.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:17 +0000.