CVE-2020-36732
MEDIUM5.3EPSS 0.88%crypto-js uses insecure random numbers
Published: 6/12/2023Modified: 3/16/2026
Description
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.
Affected packages (1)
- npm/crypto-js>= 3.2.0, < 3.2.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
References (10)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2020-36732
- PATCHhttps://github.com/brix/crypto-js
- WEBhttps://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5
- WEBhttps://github.com/brix/crypto-js/commit/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b
- WEBhttps://github.com/brix/crypto-js/compare/3.2.0...3.2.1
- WEBhttps://github.com/brix/crypto-js/issues/254
- WEBhttps://github.com/brix/crypto-js/issues/256
- WEBhttps://github.com/brix/crypto-js/pull/257/commits/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b
- WEBhttps://security.netapp.com/advisory/ntap-20230706-0003
- WEBhttps://security.snyk.io/vuln/SNYK-JS-CRYPTOJS-548472