CVE-2026-71851
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS probability
- 0.34%
- CWE
- CWE-331, CWE-334, CWE-338
- Published
- 2026-08-07
- Last modified
- 2026-08-08
Affected products
- brix crypto-js
Weakness type
Related vulnerabilities
- CVE-2026-80171 — Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to...
- CVE-2026-62646 — A vulnerability has been identified in Reyrolle 7SR5 (All versions < V2.70). A session identifier...
- CVE-2026-27490 — Combodo iTop: Weak secret generation for inline image
- CVE-2026-4936 — Power System Insufficient Entropy
- CVE-2026-4937 — Power System Insufficient Entropy
- CVE-2026-19906 — pkp pkp-lib API Key Generation APIProfileForm.php setData entropy
- CVE-2026-19748 — Tenda CH7 Kylin Web Service CWebSessionManager_ParseSession entropy
- CVE-2025-15629 — Weak Session Key Generation in TP-Link Omada Adoption Protocol