Skip to content

CVE-2026-71851 crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain

CriticalCVSS 9.0 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/cryptojs(Debian 12) = 3.1.2+dfsg-3; = 3.1.2+dfsg-4; All versions No fix listed No fix yet
ubuntu/cryptojs(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cryptojs(Ubuntu 24.04) All versions No fix listed No fix yet
npm crypto-js(npm) < 4.0.0 4.0.0 Fixed
brix crypto-js = < 4.0.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
brix crypto-js = < 4.0.0 No fix listed
npm crypto-js(npm) < 4.0.0 4.0.0
debian/cryptojs(Debian:12) All versions No fix listed
debian/cryptojs(Debian:12) = 3.1.2+dfsg-3 No fix listed
debian/cryptojs(Debian:12) = 3.1.2+dfsg-4 No fix listed
ubuntu/cryptojs(Ubuntu:22.04) All versions No fix listed
ubuntu/cryptojs(Ubuntu:24.04) All versions No fix listed

References