CVEfocus › CVE database › CVE-2026-71851

CVE-2026-71851crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable…

CVSS 9.0 CriticalEPSS 0.5% (higher than 40% of CVEs)Published 2026-08-07Updated 2026-08-08Assigner: GitHub_M

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.

CWE-331CWE-334CWE-338

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

1Fixed
5Fix pending
1Under investigation
88Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04cryptojsUnder investigationUBUNTU-CVE-2026-71851
Ubuntu 22.04cryptojsFix pendingUBUNTU-CVE-2026-71851
Ubuntu 20.04cryptojsFix pendingUBUNTU-CVE-2026-71851
Ubuntu 18.04cryptojsFix pendingUBUNTU-CVE-2026-71851
Ubuntu 16.04cryptojsFix pendingUBUNTU-CVE-2026-71851
Debian 12cryptojsFix pendingDEBIAN-CVE-2026-71851
Red Hat Enterprise Linux 10aspnetcore-runtime-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-9.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-apphost-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-apphost-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-hostNot affected
Red Hat Enterprise Linux 10dotnet-hostfxr-8.0Not affected
Red Hat Enterprise Linux 10dotnet-hostfxr-9.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-9.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 10dotnet-sdk-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-9.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 10dotnet-sdk-aot-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-dbg-9.0Not affected
Red Hat Enterprise Linux 10dotnet-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-templates-8.0Not affected
Red Hat Enterprise Linux 10dotnet-templates-9.0Not affected
Red Hat Enterprise Linux 10dotnet8.0Not affected
Red Hat Enterprise Linux 10dotnet9.0Not affected
Red Hat Enterprise Linux 10netstandard-targeting-pack-2.1Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-8.0Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-9.0Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 9dotnet-apphost-pack-8.0Not affected
Red Hat Enterprise Linux 9dotnet-apphost-pack-9.0Not affected
Red Hat Enterprise Linux 9dotnet-hostNot affected
Red Hat Enterprise Linux 9dotnet-hostfxr-8.0Not affected
Red Hat Enterprise Linux 9dotnet-hostfxr-9.0Not affected
Red Hat Enterprise Linux 9dotnet-runtime-8.0Not affected
Red Hat Enterprise Linux 9dotnet-runtime-9.0Not affected
Red Hat Enterprise Linux 9dotnet-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 9dotnet-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 9dotnet-sdk-8.0Not affected
Red Hat Enterprise Linux 9dotnet-sdk-8.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 9dotnet-sdk-9.0Not affected
Red Hat Enterprise Linux 9dotnet-sdk-9.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 9dotnet-sdk-aot-9.0Not affected
Red Hat Enterprise Linux 9dotnet-sdk-dbg-8.0Not affected
Red Hat Enterprise Linux 9dotnet-sdk-dbg-9.0Not affected
Red Hat Enterprise Linux 9dotnet-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 9dotnet-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 9dotnet-templates-8.0Not affected
Red Hat Enterprise Linux 9dotnet-templates-9.0Not affected
Red Hat Enterprise Linux 9dotnet8.0Not affected
Red Hat Enterprise Linux 9dotnet9.0Not affected
Red Hat Enterprise Linux 9netstandard-targeting-pack-2.1Not affected
Red Hat Enterprise Linux 8aspnetcore-runtime-8.0Not affected
Red Hat Enterprise Linux 8aspnetcore-runtime-9.0Not affected
Red Hat Enterprise Linux 8aspnetcore-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 8aspnetcore-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 8dotnetNot affected
Red Hat Enterprise Linux 8dotnet-apphost-pack-8.0Not affected
Red Hat Enterprise Linux 8dotnet-apphost-pack-9.0Not affected
Red Hat Enterprise Linux 8dotnet-hostNot affected
Red Hat Enterprise Linux 8dotnet-hostfxr-8.0Not affected
Red Hat Enterprise Linux 8dotnet-hostfxr-9.0Not affected
Red Hat Enterprise Linux 8dotnet-runtime-8.0Not affected
Red Hat Enterprise Linux 8dotnet-runtime-9.0Not affected
Red Hat Enterprise Linux 8dotnet-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 8dotnet-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-8.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-8.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 8dotnet-sdk-9.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-9.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 8dotnet-sdk-aot-9.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-dbg-8.0Not affected
Red Hat Enterprise Linux 8dotnet-sdk-dbg-9.0Not affected
Red Hat Enterprise Linux 8dotnet-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 8dotnet-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 8dotnet-templates-8.0Not affected
Red Hat Enterprise Linux 8dotnet-templates-9.0Not affected
Red Hat Enterprise Linux 8dotnet8.0Not affected
Red Hat Enterprise Linux 8dotnet9.0Not affected
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Not affected
npm librarycrypto-jsFixed4.0.0GHSA-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.

References

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.