{"id":"CVE-2026-71851","published":"2026-08-07T18:48:08Z","modified":"2026-08-08T03:05:53Z","title":"crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain","vendor":"brix","product":"crypto-js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.46901,"provenance":"source"},"cwes":[{"id":"CWE-331","name":"Insufficient Entropy"},{"id":"CWE-334","name":"Small Space of Random Values"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://github.com/brix/crypto-js/security/advisories/GHSA-rg76-677x-56q9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5","tags":["x_refsource_MISC"]},{"url":"https://www.coinspect.com/blog/ill-bloom-investigation","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":9.38},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.3}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-31","earliestUrl":"https://github.com/brendonlee20042004-sys/weakrng-sweep","repos":[{"name":"brendonlee20042004-sys/weakrng-sweep","url":"https://github.com/brendonlee20042004-sys/weakrng-sweep","stars":0,"created":"2026-08-31"}]},"first":{"date":"2026-08-31","source":"PoC-in-GitHub","url":"https://github.com/brendonlee20042004-sys/weakrng-sweep"},"provenance":"source"},"vendorSlug":"brix","affectedVersions":[{"vendor":"brix","product":"crypto-js","versions":["< 4.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-08T03:05:26.687602Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"crypto-js","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-rg76-677x-56q9"],"provenance":"source"}],"summary":{"text":"Versions of the crypto-js JavaScript library prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() with a custom Multiply-With-Carry PRNG seeded from Math.random() rather than a cryptographically secure source. An attacker with network access and no authentication or user interaction could enumerate the reduced output space (roughly 2^39 to 2^47 possibilities for 128- or 256-bit requests) to recover keys generated this way, such as BIP39 recovery phrases in downstream wallet applications.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:28Z"},"euvd":{"id":"EUVD-2026-54599","exploited":false,"provenance":"source"}}