patchminder
Proof of concept · GitHub CVE-2026-71851

Vulnerabilityin the crypto-js package.

Published 7 Aug 2026 · Updated 8 Aug 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 9.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.0.0 or later
In plain words

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.

What to do now
  • Upgrade crypto-js to 4.0.0 or later.
  • Upgrade crypto-js (npm) to 4.0.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
crypto-js
before 4.0.0
4.0.0
CVE record
crypto-js (npm)
before 4.0.0
4.0.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 7 Aug 2026
    CVE ID reserved by GitHub_M.
  2. 7 Aug 2026
    Published in the CVE List.
  3. 8 Aug 2026
    CVE record last updated.
  4. 31 Aug 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundbrendonlee20042004-sys/weakrng-sweep0 stars · created 31 Aug 2026Weak-RNG stream-sweep research (CVE-2026-71851 class): PRNG schemes x seeds -> BIP39 -> victim set membership
GitHubno warning signs foundtasee1/weakrng-sweep0 stars · created 3 Dec 2026Weak-RNG stream sweep (CVE-2026-71851 class) · research fork

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

Same weakness:

All CWE-331 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-71851: Vulnerability in the crypto-js package. https://patchminder.com/cve/cve-2026-71851/ (accessed 5 December 2026).