Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2022-35255

A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in…

Critical9.1EPSS 2.1%
Published
Updated
Reserved
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.

Scores

CVSS scores of CVE-2022-35255, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1Critical9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVDNVD · Modified3.1Critical9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS (exploitation in 30 days)
2.1% · top 18% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.1.

Weakness

Affected products

  • NodeJS · Node

    • affected 4.0 – < 4.*
    • affected 5.0 – < 5.*
    • affected 6.0 – < 6.*
    • affected 7.0 – < 7.*
    • affected 8.0 – < 8.*
    • affected 9.0 – < 9.*
    • affected 10.0 – < 10.*
    • affected 11.0 – < 11.*
    • affected 12.0 – < 12.*
    • affected 13.0 – < 13.*
    • affected 15.0 – < 15.*
    • affected 17.0 – < 17.*
    • affected 18.0 – < 18.9.1

References (4)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2022-35255 badge
[![CVE-2022-35255](https://trackcve.app/badge/CVE-2022-35255.svg)](https://trackcve.app/cve/CVE-2022-35255)

Record last updated .