Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. crypto-js
  4. ›
  5. CVE-2026-71851

CVE-2026-71851: crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain

August 7, 2026

CryptoJS.lib.WordArray.random() in affected versions is not a cryptographically secure random number generator. Nominal requests for 128 or 256 bits of entropy produce effective search spaces of approximately 2^39 and 2^47 possibilities — small enough to enumerate on commodity hardware.

Coinspect’s Ill Bloom investigation confirmed that downstream wallet applications used this function as the entropy source for BIP39 recovery phrases.

An application is affected only if it uses the vulnerable function to generate security-sensitive values.

Merely depending on crypto-js < 4.0.0 is not sufficient to be exploitable.

References

  • github.com/advisories/GHSA-rg76-677x-56q9
  • github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5
  • github.com/brix/crypto-js/security/advisories/GHSA-rg76-677x-56q9
  • nvd.nist.gov/vuln/detail/CVE-2026-71851
  • www.coinspect.com/blog/ill-bloom-investigation

Code Behaviors & Features

Detect and mitigate CVE-2026-71851 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.0

Fixed versions

  • 4.0.0

Solution

Upgrade to version 4.0.0 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-331: Insufficient Entropy
  • CWE-334: Small Space of Random Values
  • CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Source file

npm/crypto-js/CVE-2026-71851.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:27 +0000.