CryptoJS Weak RNG Enabled Theft From BIP39 Wallets
Active Exploitation · 6 sources · Updated 2mo ago · First seen Jul 13, 2026

Active exploitation of weak entropy in legacy CryptoJS versions enabled attackers to recover BIP39 wallet seed phrases and drain associated HD wallets. CryptoJS.lib.WordArray.random() in versions 3.1.2–4, including 3.1.8 and 3.1.9-1, used a Multiply-With-Carry generator seeded through non-cryptographic Math.random() rather than a CSPRNG. Researchers reported that this reduced the effective search space for nominally 128-bit and 256-bit mnemonic entropy to roughly 2^39 and 2^47, respectively, allowing attackers to enumerate candidate mnemonics, derive BIP32 wallet keys and addresses, and match them against public blockchain activity. Reported theft waves beginning in May 2026 caused at least $5.69 million in confirmed losses by mid-July.
Reportedly affected applications include RRWallet (RenrenBit), Bexo Wallet, NanChat versions before 1.3.0, Bitcoin Libre, and Milo; the affected-population list may not be complete. Upgrading to CryptoJS 4.0.0 or replacing legacy randomness with browser Web Crypto or Node.js crypto prevents generation of new weak secrets, as version 4.0.0 uses native cryptographic randomness and fails if none is available. It does not secure existing mnemonics: organizations and users that generated wallet seeds with potentially affected software should create a new seed using a system CSPRNG, transfer all assets to addresses derived from it, and audit legacy CryptoJS use for weak keys, salts, IVs, nonces, tokens, and session identifiers.


