CryptoJS Weak RNG Behind $5.7 Million in Drains Affects Five Crypto Wallet Apps
Weak RNG in CryptoJS library led to $5.7M crypto drain from five wallet apps.
A vulnerability in the CryptoJS JavaScript cryptography library's random number generator, present for over a decade, has been linked to the theft of at least $5.7 million from five cryptocurrency wallet applications. The weak entropy affected the generation of recovery phrases, making them guessable and allowing attackers to drain funds. While some wallets have been fixed, others are discontinued, and users with affected phrases must move their funds to new, securely generated ones.
AI summary of the linked source. Not reviewed by an editor. How this works
Run CryptoJS?
Get an email when a new story names CryptoJS, usually within the hour.
Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy
The lesson from this incident
Full lessonFive cryptocurrency wallet applications relied on CryptoJS's flawed random number generator to create cryptographic seed phrases, a vulnerability that went undetected and unpatched for over a decade. Because the entropy was insufficiently random, attackers could systematically guess recovery phrases and drain wallets without any direct system access. This incident highlights the danger of blindly trusting third-party cryptographic libraries without ongoing scrutiny of their security properties. Supply chain dependencies—especially in security-critical code paths like key generation—must be continuously evaluated, not simply adopted and forgotten. The $5.7 million loss demonstrates that a single weak link in a cryptographic foundation can silently undermine an entire application's security model.
What helps against this
How we list vendors- Vulnerability scanning and prioritisation
You know which systems are vulnerable, and which ones to fix first.
- Threat intelligence
Attack campaigns reach your sector, suppliers or software before your team hears about them.
- Software supply chain security
Malicious and vulnerable open-source packages are caught before they ship.