CVE-2020-36732 crypto-js uses insecure random numbers

Medium 5.3 Published Updated

The crypto-js library generates predictable random numbers, potentially allowing attackers to bypass security controls relying on randomness.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-36732?

CVE-2020-36732 is a medium-severity vulnerability in n/a, published on 12 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-330, CWE-331

Which versions are affected by CVE-2020-36732?

2 open source packages ship an affected version, including crypto-js. It affects 1 product.

PackageAffectedFixed in
crypto-js npmFrom 3.2.03.2.1
crypto-js npmFrom 3.2.03.2.1

Products include Crypto-Js Project Crypto-Js.

How do I fix CVE-2020-36732?

Upgrade crypto-js to 3.2.1 or later.

Is CVE-2020-36732 being exploited?

There is no known exploitation of CVE-2020-36732 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-36732, GHSA-3w3w-pxmm-2w2j.

Is CVE-2020-36732 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free