CVE-2026-71851crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable…
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
Fixed builds are available from npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | cryptojs | Under investigation | UBUNTU-CVE-2026-71851 | |
| Ubuntu 22.04 | cryptojs | Fix pending | UBUNTU-CVE-2026-71851 | |
| Ubuntu 20.04 | cryptojs | Fix pending | UBUNTU-CVE-2026-71851 | |
| Ubuntu 18.04 | cryptojs | Fix pending | UBUNTU-CVE-2026-71851 | |
| Ubuntu 16.04 | cryptojs | Fix pending | UBUNTU-CVE-2026-71851 | |
| Debian 12 | cryptojs | Fix pending | DEBIAN-CVE-2026-71851 | |
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Not affected | ||
| npm library | crypto-js | Fixed | 4.0.0 | GHSA-rg76-677x-56q9 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- brix crypto-js: affected: < 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.