CVE Database
/

CVE-2022-35255

Back to search

CVE-2022-35255

Published: Dec 5, 2022

Modified: Apr 30, 2025

PUBLISHED

Description

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.

VendorProductVersions

NodeJS

Node

affected
4.0 - < 4.*
affected
5.0 - < 5.*
affected
6.0 - < 6.*
affected
7.0 - < 7.*
affected
8.0 - < 8.*

+8 more versions

Weaknesses (CWE)

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now