Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in crypto-js - #VU141233

 

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in crypto-js - #VU141233

Published: August 7, 2026


Vulnerability identifier: #VU141233
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-338
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to recover security-sensitive values.

The vulnerability exists due to use of a cryptographically weak pseudo-random number generator in CryptoJS.lib.WordArray.random() when generating security-sensitive values. A remote attacker can enumerate the reduced output space to recover security-sensitive values.

An application is affected only if it uses the vulnerable function to generate security-sensitive values.


Affected software

crypto-js

Remediation

Install security update from vendor's website.

crypto-js - update to 4.0.0

External References

Related Security Bulletins