Vulnerability in Node.js Node

CVE-2022-35255

A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.

EPSS: 0.019 (78.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-35255?
CVE-2022-35255 is a critical-severity vulnerability in Node.js Node, classified under Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG). CVSS score: 9.1/10. Published 2022-12-05.
How severe is CVE-2022-35255?
Critical severity. CVSS v3 base score is 9.1 out of 10.
Is CVE-2022-35255 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.