All vulnerabilities

Servers and applications

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…

Severity
Critical 9.1
Published
5 Dec 2022
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
16.17.1, 18.9.1
Sources
NVD

Affected software

SoftwareAffected versions
Node.jsServers and applications · cpe:a:nodejs:node.js
  • From 15.0.0 up to 15.14.0
  • From 16.0.0 up to 16.12.0
  • From 16.13.0 before 16.17.1
  • From 18.0.0 before 18.9.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-35255
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-35255