CVE-2020-36732 crypto-js uses insecure random numbers
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.
Which versions are affected by CVE-2020-36732?
2 open source packages ship an affected version, including crypto-js. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
crypto-js npm | From 3.2.0 | 3.2.1 |
crypto-js npm | From 3.2.0 | 3.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.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2020-36732, GHSA-3w3w-pxmm-2w2j.