# CVE-2022-35255: A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyG…

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.64%, higher than 86% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-05T00:00:00.000Z
- Modified: 2026-10-16T09:45:30.951Z
- Also known as: BIT-NODE-2022-35255, BIT-NODE-MIN-2022-35255
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- NodeJS Node: from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; from 12.0 before 12.*; from 13.0 before 13.*; from 15.0 before 15.*; from 17.0 before 17.*; and 1 more
- 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
- siemens sinec_ins: before 1.0; 1.0
- debian debian_linux: 11.0
- node (Bitnami): from 15.0.0 before 15.14.1; from 16.0.0 before 16.12.1; from 16.13.0 before 16.17.1; from 18.0.0 before 18.9.1
- node-min (Bitnami): from 15.0.0 before 15.14.1; from 16.0.0 before 16.12.1; from 16.13.0 before 16.17.1; from 18.0.0 before 18.9.1

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://hackerone.com/reports/1690000> (exploit, advisory, issue-tracking, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf> (third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20230113-0002/> (advisory, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5326> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-35255> (web)

## Sources

- CVE List: [CVE-2022-35255](https://www.cve.org/CVERecord?id=CVE-2022-35255), CVE Terms of Use, modified 2025-04-30
- NVD: [CVE-2022-35255](https://nvd.nist.gov/vuln/detail/CVE-2022-35255), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NODE-2022-35255](https://osv.dev/vulnerability/BIT-NODE-2022-35255), Apache-2.0, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2022-35255](https://osv.dev/vulnerability/BIT-NODE-MIN-2022-35255), Apache-2.0, modified 2026-10-16

---

Page: https://cve.day/CVE-2022-35255 · Whole record: https://cve.day/CVE-2022-35255.json · Rebuilt by cve.day 2026-11-25T22:58:17.234Z
