CVE-2026-71851brix crypto-js
Critical 9.0 No auth needed
Follow: this CVE · brix · brix crypto-js We alert you by email or Slack (account required).
- Priority
- 69
- CVSS 3.1
- 9.0
- EPSS
- —
- Auth required
- No
- Published
- Aug 7, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for crypto-js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | crypto-js |
< 4.0.0 |
4.0.0 |
npm install crypto-js@4.0.0 |
Per OSV / GitHub Advisories (GHSA-rg76-677x-56q9). Check the version in your lockfile before upgrading.
Affected products
- brix · crypto-js
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.