Insecure Randomness Affecting @fastly/js-compute package, versions >=0.4.0 <0.5.3


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.23% (62nd 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-JS-FASTLYJSCOMPUTE-3027822
  • published21 Sept 2022
  • disclosed20 Sept 2022
  • creditJakeChampion

Introduced: 20 Sep 2022

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

How to fix?

Upgrade @fastly/js-compute to version 0.5.3 or higher.

Overview

@fastly/js-compute is a npm version npm downloads per month

Affected versions of this package are vulnerable to Insecure Randomness in the Math.random and crypto.getRandomValues methods.

References

CVSS Scores

version 3.1