Vulnerability library
Security checkJanuary 30, 2023

Fastly Compute@Edge JS Runtime has fixed random number seed during compilation

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Math.random and crypto.getRandomValues methods failed to use sufficiently random values. The initial value to seed the CSPRNG (cryptographically secure pseudorandom number generator) was baked-in to the final WebAssembly module meaning the sequence of numbers generated was predictable for that specific WebAssembly module.

Recommendation

Update the @fastly/js-compute package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 0.4.0, < 0.5.3
  • Patched version(s): 0.5.3

References

Could your website be exposed too?

SmartScanner can check your website for Fastly Compute@Edge JS Runtime has fixed random number seed during compilation and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 30, 2023