Skip to main content
CRITICAL

CVE-2022-35255

CVSS v3

9.1

CRITICAL

EPSS Score

2.1 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for node.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nodeBitnamifrom 15.0.0 · fixed in 15.14.1and 1 other package
  • nodejsAlmaLinux:9all versions · fixed in 1:16.17.1-1.el9_0and 3 other packages
  • nodejsAlmaLinux:8all versions · fixed in 1:18.9.1-1.module_el8.7.0+3343+ea2b7901and 3 other packages
  • nodejs-nodemonAlmaLinux:8all versions · fixed in 2.0.19-1.module_el8.7.0+3343+ea2b7901
  • nodejs-packagingAlmaLinux:8all versions · fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901and 1 other package
  • npmAlmaLinux:9all versions · fixed in 1:8.15.0-1.16.17.1.1.el9_0
  • npmAlmaLinux:8all versions · fixed in 1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901

Vendor advisories

  • CVE-2022-35255 Red Hat Product Security95 products fixed

    nodejs: weak randomness in WebCrypto keygen

  • ICSA-23-017-03 CISA1 known affected

    Siemens SINEC INS

    SINEC INS

  • SSA-332410 Siemens ProductCERT1 known affected

    SSA-332410: Multiple Vulnerabilities in SINEC INS before V1.0 SP2 Update 1

    SINEC INS

  • RHSA-2022:7821 Red Hat Product Security31 products fixed

    Red Hat Security Advisory: nodejs:18 security update

  • RHSA-2022:6963 Red Hat Product Security34 products fixed

    Red Hat Security Advisory: nodejs security update

  • RHSA-2022:6964 Red Hat Product Security30 products fixed

    Red Hat Security Advisory: nodejs:16 security update

Full record on NVD

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.

Technical details

Published
2022-12-05

Frequently asked questions

What is 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.

Is CVE-2022-35255 actively exploited?

Active exploitation of CVE-2022-35255 has not been confirmed. Its EPSS score was 2.1% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2022-35255?

CVE-2022-35255 has a CVSS v3 base score of 9.1 (CRITICAL severity).

Running node? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month