Blockchain security firm Coinspect has identified the CryptoJS.lib.WordArray.random() function as the source of a weak random number generator (RNG) that led to significant cryptocurrency theft. This function, part of the JavaScript cryptography library for 12 years, provided insufficient entropy for generating recovery phrases in several wallet applications.
Coinspect's on-chain analysis indicates that approximately $5.7 million was stolen in two separate sweeps since late May due to this vulnerability. Five specific wallet applications were confirmed to have used the compromised generator for recovery phrase generation: RRWallet, Bexo Wallet, NanChat, Bitcoin Libre, and Milo. Some of these applications have since been discontinued or updated to fix the issue, though updating does not repair existing compromised phrases.
The vulnerability significantly reduced the cryptographic strength of recovery phrases. While 128-bit and 256-bit entropy should yield search spaces of 2^128 and 2^256 respectively, the weak generator reduced these to roughly 2^39 and 2^47. These reduced search spaces are small enough to be enumerated using ordinary hardware, allowing attackers to guess recovery phrases and access funds.
Users who generated recovery phrases with any of the affected wallet versions must create a new, securely generated phrase and transfer their funds to it. A compromised phrase remains vulnerable even if imported into a hardware wallet. Coinspect advises that hardware-generated seeds and most current software wallets are not affected by this specific issue.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Coinspect identified that the CryptoJS.lib.WordArray.random() function, introduced 12 years ago, contained a weak random number generator that allowed for the theft of approximately $5.7 million from five crypto wallet applications. This vulnerability reduced the entropy of recovery phrases, making them guessable and compromising user funds.