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

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-08-07T18:48:08.348Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-rg76-677x-56q9
- Weaknesses: CWE-331, CWE-334, CWE-338
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- brix crypto-js: < 4.0.0
- crypto-js (npm): before 4.0.0

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/brix/crypto-js/security/advisories/GHSA-rg76-677x-56q9> (patch, web)
- <https://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5> (web)
- <https://www.coinspect.com/blog/ill-bloom-investigation> (web)
- <https://github.com/brix/crypto-js> (package)

## Sources

- CVE List: [CVE-2026-71851](https://www.cve.org/CVERecord?id=CVE-2026-71851), CVE Terms of Use, modified 2026-08-08
- GitHub Advisory Database: [GHSA-rg76-677x-56q9](https://github.com/advisories/GHSA-rg76-677x-56q9), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2026-71851](https://nvd.nist.gov/vuln/detail/CVE-2026-71851), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-71851 · Whole record: https://cve.day/CVE-2026-71851.json · Rebuilt by cve.day 2026-11-25T22:59:31.877Z
