Vulnerabilityin the crypto-js package.
Proof of concept public (GitHub).
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.
- Upgrade crypto-js to 4.0.0 or later.
- Upgrade crypto-js (npm) to 4.0.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 7 Aug 2026CVE ID reserved by GitHub_M.
- 7 Aug 2026Published in the CVE List.
- 8 Aug 2026CVE record last updated.
- 31 Aug 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
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.
Report a link
Other vulnerabilities in this package
Same weakness:
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- www.coinspect.com x_refsource_MISC
Patchminder. CVE-2026-71851: Vulnerability in the crypto-js package. https://patchminder.com/cve/cve-2026-71851/ (accessed 5 December 2026).