ADVISORIES

GitHub Advisory Database

GHSA-rq8g-5pc5-wrhr

Insufficient Entropy in cryptiles

Critical CVE-2018-1000620

Details

Versions of cryptiles prior to 4.1.2 are vulnerable to Insufficient Entropy. The randomDigits() method does not provide sufficient entropy and its generates digits that are not evenly distributed.

Recommendation

Upgrade to version 4.1.2. The package is deprecated and has been moved to @hapi/cryptiles and it is strongly recommended to use the maintained package.

Affected packages

EcosystemPackageAffected versions
npmcryptiles
From 4.0.0 before 4.1.2 (fixed in 4.1.2)
npmcryptiles
From 3.1.0 before 3.1.3 (fixed in 3.1.3)

References