Blockchain security firm Coinspect has identified a critical vulnerability in the random number generator of the widely used CryptoJS library, which made recovery phrases in at least five cryptocurrency wallet apps predictable. The flaw has been exploited multiple times since May, resulting in an estimated minimum of $5.69 million in stolen funds, according to a report by CryptoSlate.

How the Vulnerability Was Exploited

Coinspect’s analysis revealed that the flawed random number generator allowed attackers to predict seed phrases—the sequences of words used to back up and restore wallets. The firm documented three separate attack waves: approximately $3.14 million was drained on May 27, an additional $2.55 million was traced between May 30 and July 13, and a third attack between July 20 and 21 caused about $40,000 in losses.

The researchers noted that more than 2,000 seed phrases across five blockchain networks appear to have been affected. However, the specific list of impacted wallet apps and the full scale of the damage remain unclear, as some victims may not have publicly reported losses.

Implications for Wallet Security

This incident highlights a persistent challenge in cryptocurrency security: even well-intentioned code can introduce systemic risks. CryptoJS is a popular JavaScript library used for cryptographic functions, and its random number generation was found to be insufficient for generating secure keys. While the library is widely used, not all applications may be affected—only those that relied on the vulnerable implementation for seed generation.

For users, the incident underscores the importance of using wallets with audited, battle-tested code and hardware wallets for significant holdings. It also raises questions about the responsibility of open-source maintainers to ensure cryptographic primitives meet current security standards.

What Users Should Do

Wallet users who suspect they may be affected should immediately transfer funds to a newly generated wallet with a hardware device or a reputable software wallet that uses audited random number generation. They should also monitor blockchain addresses associated with their seed phrases for unauthorized transactions. For developers, this serves as a reminder to use established libraries for random number generation, such as those based on Web Crypto API, and to conduct thorough security reviews.

Conclusion

The discovery by Coinspect reveals a serious flaw in a widely used library, leading to significant financial losses. While the full impact is still being assessed, the incident emphasizes the need for rigorous security practices in cryptocurrency wallet development and user vigilance. As the investigation continues, affected users are advised to act promptly to secure their assets.

FAQs

Q1: What is a wallet seed phrase?
A wallet seed phrase is a set of words that acts as a backup for a cryptocurrency wallet. It allows users to recover their funds if the wallet is lost or damaged.

Q2: How can I tell if my wallet is affected by this vulnerability?
If you used a wallet app that relied on the CryptoJS library for seed generation, you may be at risk. Check the wallet’s documentation or contact the provider. If you suspect exposure, move funds to a new wallet immediately.

Q3: What should developers do to avoid such vulnerabilities?
Developers should use cryptographically secure random number generators, such as those provided by the Web Crypto API, and avoid relying on general-purpose libraries for security-critical functions. Regular security audits are also essential.

Related Reading

  • Strategy Stock Jumps More Than 10%, Tops $135 as Bitcoin Rally Continues
  • Strive Shares Top $24 After 110% Monthly Surge on Bitcoin Strategy
  • Bitcoin Breaks Above $80,000 as Momentum Builds in Crypto Markets
  • Hyperliquid Strategy Raises $647M, Expands HYPE Holdings to 29.3M
  • Trader with $11.2M ETH Gain Opens 20x Leveraged SOL Long