CVE-2020-36732
MEDIUM 5.3CVSS 3.1crypto-js uses insecure random numbers
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.
- Published
- 12 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-330CWE-331
- Also known as
- GHSA-3w3w-pxmm-2w2j
- Sources
- NVDJSONOSV GHSA-3w3w-pxmm-2w2jJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | crypto-js_project | crypto-jscpe:2.3:a:crypto-js_project:crypto-js:*:*:*:*:*:*:*:* |
< 3.2.1 | 3.2.1 |
| OSV | npm | crypto-js | >= 3.2.0, < 3.2.1 | 3.2.1 |
References
- https://github.com/brix/crypto-js/compare/3.2.0...3.2.1 · Release Notes, WEB
- https://github.com/brix/crypto-js/issues/254 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/brix/crypto-js/issues/256 · Issue Tracking, Patch, Vendor Advisory, WEB
- https://github.com/brix/crypto-js/pull/257/commits/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b · Patch, WEB
- https://security.netapp.com/advisory/ntap-20230706-0003/ · WEB
- https://security.snyk.io/vuln/SNYK-JS-CRYPTOJS-548472 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-36732 · ADVISORY
- https://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5 · WEB
- https://github.com/brix/crypto-js/commit/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b · WEB
- https://github.com/brix/crypto-js · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 12 Jun 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 12 Jun 2023)