Insecure Randomness Affecting uuid package, versions <1.3.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID npm:uuid:20111230
  • published 13 Feb 2017
  • disclosed 29 Dec 2011
  • credit Robert Kieffer

Introduced: 29 Dec 2011

CVE NOT AVAILABLE CWE-330 Open this link in a new tab

How to fix?

Upgrade uuid to version 1.3.1 or higher.

Overview

uuid is RFC4122 (v1 and v4) generator.

Affected versions of the package use the Math.random() function which may generate already-used numbers after 24,000 cycles, making the values predictable for objects requiring unpredictability. It is possible for an attacker to guess the next value to be generated and may use this to access sensitive information.

References

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    None
  • Availability (A)
    None