A critical vulnerability tracked as CVE-2026-71851 was disclosed in the JavaScript cryptography library crypto-js, affecting versions prior to 4.0.0. The flaw lies in CryptoJS.lib.WordArray.random(), which used a custom Multiply-With-Carry pseudorandom number generator seeded with Math.random() rather than a cryptographically secure operating-system entropy source. That design sharply reduced the effective entropy of supposedly strong random outputs, making generated keys, initialization vectors, and other secrets potentially predictable or reconstructable.
The weakness is especially serious for cryptocurrency wallets and decentralized applications that used the function to generate entropy for BIP39 recovery phrases, because attackers may be able to recover private keys and steal funds from affected wallets. Reports assign the issue a CVSS v3.1 score of 9.0 and map it to CWE-331, CWE-338, and CWE-334. The issue is fixed in crypto-js 4.0.0, and secure alternatives cited for randomness generation include browser window.crypto.getRandomValues() and Node.js crypto.randomBytes().

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
3 events from the most recent confirmed update back to the earliest known activity.
GitHub Security Advisories newly received the CVE-2026-71851 entry for the crypto-js weak-PRNG vulnerability. The issue describes reduced entropy in CryptoJS.lib.WordArray.random() that could enable recovery of wallet seed phrases and private keys.
The insufficient-entropy issue in CryptoJS.lib.WordArray.random() was fixed in crypto-js version 4.0.0. The fix replaced the vulnerable behavior present across nearly all 3.x releases.
The vulnerable custom Multiply-With-Carry pseudorandom number generator seeded from Math.random() was introduced in crypto-js version 3.1.2-4, affecting CryptoJS.lib.WordArray.random(). This design weakened entropy for cryptographic secrets generated by downstream applications.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
2 references tracked. Mallory keeps watching after this page renders.
cvefeed.io
Open sourcecvereports.com
Open sourceMap indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.