Insecure Randomness Affecting node package, versions [16.0.0,16.17.1)[18.0.0,18.9.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.23% (79th percentile)

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 Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UPSTREAM-NODE-3035792
  • published29 Sept 2022
  • disclosed23 Sept 2022
  • creditBen Noordhuis

Introduced: 23 Sep 2022

CVE-2022-35255  (opens in a new tab)
CWE-330  (opens in a new tab)

How to fix?

Upgrade node to version 16.17.1, 18.9.1 or higher.

Overview

node is a JavaScript runtime built on Chrome's V8 JavaScript engine.

Affected versions of this package are vulnerable to Insecure Randomness via the EntropySource() function in SecretKeyGenTraits::DoKeyGen(), due to improper checking the return value, allowing an attacker to perform cryptographic attacks.

CVSS Base Scores

version 3.1