Description
CryptoJS.lib.WordArray.random() in affected versions is not a cryptographically secure random number generator. Nominal requests for 128 or 256 bits of entropy produce effective search spaces of approximately 2^39 and 2^47 possibilities — small enough to enumerate on commodity hardware.
Recommendation
Update the crypto-js package to the latest compatible version. Followings are version details:
- Affected version(s): < 4.0.0
- Patched version(s): 4.0.0
References
Could your website be exposed too?
SmartScanner can check your website for crypto-js: Insufficient Entropy in Cryptographic Secret Generation via Vulnerable CryptoJS Dependency Chain and gives you actionable findings to investigate.
Start a free scanRelated Issues
- enclave-vm Vulnerable to Sandbox Escape via Host Error Prototype Chain - CVE-2026-22686
- @langchain/community affected by SSRF Bypass in RecursiveUrlLoader via insufficient URL origin validation - CVE-2026-26019
- webpack-dev-middleware vulnerable to Path Traversal via non-slash-terminated publicPath - CVE-2026-76844
- fast-uri vulnerable to authority injection via an unvalidated port in serialize - CVE-2026-84292


