Skip to main content
CVE-2026-71851VulnerabilityPublished Updated

Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation

Affects cryptojsSource GCVE Database

0
Compare
Authoritative record:CVE-2026-71851· Critical 9.0

Not known to be exploited · CVSS 9.0 Critical · fixed in 4.0.0 : patch cryptojs as a priority.

Data as of 24 Nov 2026, 21:01 UTC

CVSS 3.1 base score
9.0Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 4.0.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTScryptojspkg:deb/ubuntu/cryptojs?arch=source&distro=nobleOther threatsAffected
  • =3.1.2+dfsg-3
  • =3.1.2+dfsg-4
Fixed in–
Ubuntu Pro 22.04 LTScryptojspkg:deb/ubuntu/cryptojs?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =3.1.2+dfsg-3
  • =3.1.2+dfsg-3ubuntu0.22.04.1~esm1
Fixed in–
Ubuntu 20.04 LTScryptojspkg:deb/ubuntu/cryptojs?arch=source&distro=focalOther threatsAffected
  • =3.1.2+dfsg-2
  • =3.1.2+dfsg-2ubuntu0.20.04.1
Fixed in–
Ubuntu Pro 18.04 LTScryptojspkg:deb/ubuntu/cryptojs?arch=source&distro=esm-apps/bionicOther threatsAffected
  • =3.1.2+dfsg-2
  • =3.1.2+dfsg-2ubuntu0.18.04.1~esm1
Fixed in–
Ubuntu Pro 16.04 LTScryptojspkg:deb/ubuntu/cryptojs?arch=source&distro=esm-apps/xenialOther threatsAffected
  • =3.1.2+dfsg-1
  • =3.1.2+dfsg-2
  • =3.1.2+dfsg-2ubuntu0.16.04.1~esm1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to crypto-js version 4.0.0 or later, where the randomness generation uses a cryptographically secure source. No other mitigations are indicated. Users of affected versions should replace the vulnerable library to prevent exploitation.

Description

Versions of the crypto-js JavaScript library prior to 4.0.0 use a weak pseudorandom number generator in CryptoJS.lib.WordArray.random(), seeded from Math.random(), resulting in low entropy output. This weakness reduces the effective search space for generated randomness, making it feasible for attackers to enumerate possible values. Wallet applications relying on this function for BIP39 recovery phrase entropy are vulnerable to private key recovery and fund theft. The issue is fixed in version 4.0.0.

References

Community reviews

Loading reviews…