CVE catalog

CVE-2026-71851

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 p

[CVE catalog]

Severity
Critical · CVSS 9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.55% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancryptojsbookworm3.1.2+dfsg-3vulnerable
Npmcrypto-jsNot reported4.0.0fixed
Ubuntucryptojspro3.1.2+dfsg-3vulnerable
Ubuntucryptojspro3.1.2+dfsg-3ubuntu0.22.04.1~esm1vulnerable
Ubuntucryptojs20.043.1.2+dfsg-2vulnerable
Ubuntucryptojs20.043.1.2+dfsg-2ubuntu0.20.04.1vulnerable
Ubuntucryptojs24.043.1.2+dfsg-3vulnerable
Ubuntucryptojs24.043.1.2+dfsg-4vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancryptojssourcebookworm(unfixed)not yet assignedNot reportedNot reported
Npmcrypto-jsnpmNot reported4.0.0Not reportedNot reportedNot reported

Notes

[bookworm] cryptojs: Minor issue, low popcon

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libjs-cryptojs]Affected

    Source package: [cryptojs]

    Details (2)
    • 3.1.2+dfsg-3 · all · bookworm

      Affected

      nvd · cryptojs · debian · bookworm; nvd · cryptojs · debian · 12

    • 3.1.2+dfsg-3 · all · bookworm

      Affected

      nvd · cryptojs · debian · bookworm; nvd · cryptojs · debian · 12

Observed:

References