synced 3 MIN AGO
01 Record

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

CriticalPUBLISHEDCNA: hackerone
CNA base score9.1 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

02 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

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
2.09% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 81.4% of scored records. A rank, not a probability.
NVD base score
9.1 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Important. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2022-12-05 00:00Z3 YR AGO
Last updated
2025-04-30 05:48Z1 YR AGO
Reserved
2022-07-06
Assigning CNA
hackerone
Record state
PUBLISHED
Severity
Critical (CVSS 9.1)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
  • CWE-338Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)Base
Data version
5.1
Document digest
29ec950fded105cc2a376f4062225e3322c6ec931bde0f385eb7a71eb3325139

05 Affected products

VendorProductVersionsPlatforms
NodeJSNode4.0 to < 4.*, 5.0 to < 5.*, 6.0 to < 6.*, 7.0 to < 7.*, 8.0 to < 8.*, 9.0 to < 9.*, 10.0 to < 10.*, 11.0 to < 11.*, 12.0 to < 12.*, 13.0 to < 13.*, 15.0 to < 15.*, 17.0 to < 17.*, 18.0 to < 18.9.1—

06 References

07 Fixed in

AlmaLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.19-1.module_el8.7.0+3343+ea2b7901
    • Affected before 2.0.19-2.module_el8.6.0+3261+490666b3
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 25-1.module_el8.5.0+2605+45d748af
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.15.0-1.16.17.1.1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • nodejs
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-docs
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-full-i18n
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-libs
    Fixed in 1:16.17.1-1.el9_0
  • npm
    Fixed in 1:8.15.0-1.16.17.1.1.el9_0

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-docs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:16.17.1-1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-nodemon
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.0.19-1.module_el8.7.0+3343+ea2b7901
    • Affected before 2.0.19-2.module_el8.6.0+3261+490666b3
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2021.06-4.module_el8.7.0+3343+ea2b7901
    • Affected before 25-1.module_el8.5.0+2605+45d748af
  • nodejs-packaging-bundler
    Fixed in 2021.06-4.module_el8.7.0+3343+ea2b7901
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:8.15.0-1.16.17.1.1.module_el8.6.0+3328+2e4711d7
    • Affected before 1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • nodejs
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-docs
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-full-i18n
    Fixed in 1:16.17.1-1.el9_0
  • nodejs-libs
    Fixed in 1:16.17.1-1.el9_0
  • npm
    Fixed in 1:8.15.0-1.16.17.1.1.el9_0

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • nodejs
    Fixed in 18.10.0+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • nodejs
    Fixed in 18.10.0+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • nodejs
    Fixed in 18.10.0+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.