Vulnerability record · CVE-2022-35255 · published 5 December 2022
CVE-2022-35255: Nodejs node.js vulnerability
Nodejs · Node.Js
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf | Third Party Advisory |
| https://hackerone.com/reports/1690000 | ExploitIssue TrackingThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20230113-0002/ | Third Party Advisory |
| https://www.debian.org/security/2023/dsa-5326 | Third Party Advisory |
| https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf | Third Party Advisory |
| https://hackerone.com/reports/1690000 | ExploitIssue TrackingThird Party Advisory |
| https://security.netapp.com/advisory/ntap-20230113-0002/ | Third Party Advisory |
| https://www.debian.org/security/2023/dsa-5326 | Third Party Advisory |
Track CVE-2022-35255 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-35255), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.