MediumGHSA-3w3w-pxmm-2w2jCVE-2020-36732

crypto-js uses insecure random numbers

Published 12 Jun 2023 · Updated 16 Mar 2026

Is your project on an affected crypto-js?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Affected package

Affected
>=3.2.0 <3.2.1
Fixed in
3.2.1
Update to the fixed version for your release line, for example:npm install crypto-js@3.2.1

Details

The crypto-js package 3.2.0 for Node.js generates random numbers by concatenating the string "0." with an integer, which makes the output more predictable than necessary.

Is GHSA-3w3w-pxmm-2w2j in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected crypto-js, and gives you the command that fixes it.

More advisories for crypto-js

  • CriticalCVE-2026-71851crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain · 7 Aug 2026
  • CriticalCVE-2023-46233crypto-js PBKDF2 1,000 times weaker than specified in 1993 and 1.3M times weaker than current standard · 25 Oct 2023
crypto-js security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.