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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 4.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-08-07 · Modified: 2026-08-08
- Aliases: UBUNTU-CVE-2026-71851, DEBIAN-CVE-2026-71851, GHSA-rg76-677x-56q9
- Record: https://cvemate.com/vulnerability/CVE-2026-71851 · JSON: https://cvemate.com/vulnerability/CVE-2026-71851/json

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

## Signals

- CVSS: 9 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.507%, percentile 44.894%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- brix crypto-js: \< 4.0.0
- debian cryptojs (Debian): All versions (No fix recorded)
- ubuntu cryptojs (Ubuntu): All versions (No fix recorded)
- Npm crypto-js (Npm): \< 4.0.0

## References

- <https://github.com/brix/crypto-js/security/advisories/GHSA-rg76-677x-56q9>
- <https://github.com/brix/crypto-js/commit/b405ff597fb3ac76a7bdfbc72dca10ba1079b1d5>
- <https://www.coinspect.com/blog/ill-bloom-investigation>
- <https://ubuntu.com/security/CVE-2026-71851>
- <https://www.cve.org/CVERecord?id=CVE-2026-71851>
- <https://security-tracker.debian.org/tracker/CVE-2026-71851>
- <https://github.com/brix/crypto-js>

---

Data as of 2026-12-05T08:28:42.672Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
