Quick answers
- Is CVE-2020-36732 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2020-36732 being exploited in the wild.
- How severe is CVE-2020-36732?
- Low severity, with a CVSS score of 3.1, published 12 June 2023.
- Which products and versions are affected?
- crypto-js (npm) SEMVER:introduced=3.2.0,fixed=3.2.1.
- Is there a fix for CVE-2020-36732?
- Yes. crypto-js (npm): upgrade to 3.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2020-36732 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2020-36732?
- Check whether you run crypto-js (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- crypto-js (npm): upgrade to 3.2.1 or later
npm install crypto-js@3.2.1
Technical details
The crypto-js package version 3.2.0 for Node.js contains a vulnerability where random numbers are generated using an insecure method (CWE-330). Specifically, the library attempted to generate random values by concatenating the string '0.' with an integer, which results in insufficient entropy and predictable outputs compared to cryptographically secure pseudo-random number generators (CSPRNG). This predictability can weaken cryptographic operations that rely on randomness, such as key generation or initialization vectors. The issue was addressed in version 3.2.1 by implementing a more robust random number generation strategy that leverages native crypto modules where available.
Affected products
- brix crypto-js 3.2.0
Identifiers
- CVE-2020-36732
- GHSA-3w3w-pxmm-2w2j
Timeline
- 2020-01-30: disclosed: Issue reported to maintainers via GitHub and email
- 2020-02-11: patched: Fix committed to repository
- 2023-06-12: advisory: GitHub Advisory and CVE published
References
- https://github.com/brix/crypto-js/issues/254
- https://github.com/brix/crypto-js/issues/256
- https://github.com/brix/crypto-js/pull/257/commits/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b
- https://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5
- https://github.com/brix/crypto-js/commit/e4ac157d8b75b962d6538fc0b996e5d4d5a9466b
- https://github.com/brix/crypto-js