CVE-2018-1000620: Insufficient Entropy in cryptiles

cryptiles Updated 02 Oct 2025

Summary

11/09/2018
Yes i
Critical
9.8

CVE-2018-1000620: Insufficient Entropy in cryptiles. Affects cryptiles versions >= 3.1.0, < 4.1.2. Fixed in 4.1.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The cryptiles package is an npm package that provides various cryptographic utility functions. It is used for generating random numbers, digits, and bits. The package has been deprecated and moved to @hapi/cryptiles, and it is recommended to use the maintained package. Versions prior to 4.1.2 are vulnerable to Insufficient Entropy.

Vulnerability Detail

The vulnerability in cryptiles arises from the randomDigits() method, which does not provide sufficient entropy. As a result, the generated digits are not evenly distributed. This can lead to cryptographic weaknesses and compromise the security of applications that rely on this package. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

4.1.2

This is the first release that contains the fix.

npm install cryptiles@4.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The cryptiles package prior to version 4.1.2 is vulnerable to Insufficient Entropy. It is crucial to upgrade to the fixed version or migrate to @hapi/cryptiles to ensure the security of applications. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for cryptiles →

Share this vulnerability

FAQ

The vulnerability can lead to cryptographic weaknesses and compromise the security of applications that use the cryptiles package. Attackers may be able to exploit the insufficient entropy to predict or manipulate random numbers, compromising the integrity and confidentiality of cryptographic operations.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

Yes, the cryptiles package has been deprecated and moved to @hapi/cryptiles. It is strongly recommended to migrate to this maintained package to ensure security and receive updates.

The CVSS score of this vulnerability is 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

4.1.2

This is the first release that contains the fix.

npm install cryptiles@4.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback