Insecure Randomness Affecting crypto-js package, versions >=3.2.0 <3.2.1
Attack Complexity
Low
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications-
snyk-id
SNYK-JS-CRYPTOJS-548472
-
published
11 Feb 2020
-
disclosed
11 Feb 2020
-
credit
Unknown
Introduced: 11 Feb 2020
CWE-331 Open this link in a new tabHow to fix?
Upgrade crypto-js
to version 3.2.1 or higher.
Overview
crypto-js is a library of crypto standards.
Affected versions of this package are vulnerable to Insecure Randomness. The secureRandom()
method is supposed to return a cryptographically strong pseudo-random data string, but it is biased to certain digits. An attacker could be able to guess the created digits.