Skip to content
Fencer Vulns
critical 9.1

CVE-2022-35255 in the critical feed json

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

published 2022-12-05 3 y ago modified 2026-10-16 23 d ago also BIT-node-2022-35255 , BIT-node-min-2022-35255 , EUVD-2022-38146

cvss
9.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.1%
EPSS 2.1% chance of exploitation in 30 days, percentile 81%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami node 15.14.1, 16.12.1, 16.17.1, 18.9.1
  • bitnami node-min 15.14.1, 16.12.1, 16.17.1, 18.9.1
  • NodeJS Node 18.9.1
  • nodejs Debian 14, Debian 13, Debian 12 18.10.0+dfsg-1

debian advisories DEBIAN-CVE-2022-35255

  • npm RHEL 8 1:8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802b
  • nodejs RHEL 8 1:18.9.1-1.module+el8.7.0+16806+4109802b
  • nodejs-nodemon RHEL 8 2.0.19-1.module+el8.7.0+16061+0a247725
  • nodejs-full-i18n RHEL 8 1:18.9.1-1.module+el8.7.0+16806+4109802b
  • nodejs-packaging RHEL 8 2021.06-4.module+el8.7.0+15582+19c314fa
  • nodejs-packaging-bundler RHEL 8 2021.06-4.module+el8.7.0+15582+19c314fa
  • nodejs RHEL 9 1:16.17.1-1.el9_0
  • npm RHEL 9 1:8.15.0-1.16.17.1.1.el9_0

red hat advisories RHSA-2022:7821RHSA-2022:6963RHSA-2022:6964

  • nodejs18 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.5, openSUSE Leap 15.4 18.13.0-150400.9.3.1
  • nodejs18 SLE Module for Web and Scripting 12 18.13.0-8.3.1
  • nodejs16 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.4 16.17.1-150400.3.9.1
  • nodejs16 SLE Module for Web and Scripting 15 SP3, openSUSE Leap 15.3 16.17.1-150300.7.12.1
  • nodejs16 SLE Module for Web and Scripting 12 16.17.1-8.12.1

suse advisories SUSE-SU-2023:0419-1SUSE-SU-2023:0408-1SUSE-SU-2022:3656-1SUSE-SU-2022:3615-1SUSE-SU-2022:3524-1

  • nodejs16 openSUSE Tumbleweed 16.17.1-1.1
  • nodejs18 openSUSE Tumbleweed 18.10.0-1.1

opensuse advisories openSUSE-SU-2024:12370-1openSUSE-SU-2024:12376-1

  • npm AlmaLinux 8 1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901
  • nodejs AlmaLinux 8 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-nodemon AlmaLinux 8 2.0.19-1.module_el8.7.0+3343+ea2b7901
  • nodejs-full-i18n AlmaLinux 8 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
  • nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
  • nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
  • nodejs AlmaLinux 9 1:16.17.1-1.el9_0
  • npm AlmaLinux 9 1:8.15.0-1.16.17.1.1.el9_0

almalinux advisories ALSA-2022:7821ALSA-2022:6963ALSA-2022:6964

  • nodejs Rocky Linux 8 1:18.9.1-1.module+el8.7.0+1072+5b168780
  • nodejs-nodemon Rocky Linux 8 2.0.19-1.module+el8.7.0+1072+5b168780
  • nodejs-packaging Rocky Linux 8 2021.06-4.module+el8.7.0+1072+5b168780
  • nodejs Rocky Linux 8 1:16.17.1-1.module+el8.6.0+1046+80feca58
  • nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1046+80feca58
  • nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1003+ae94235a
  • nodejs-packaging Rocky Linux 8 25-1.module+el8.6.0+1046+80feca58
  • nodejs-packaging Rocky Linux 8 25-1.module+el8.5.0+702+221f14e6

rocky linux advisories RLSA-2022:7821RLSA-2022:6964RLSA-2022:6963

  • nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 16.17.1-r0
  • nodejs-current Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 18.9.1-r0

alpine advisories ALPINE-CVE-2022-35255

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-35255 updated cvss 8.2

nodejs: weak randomness in WebCrypto keygen

  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 18.9.1-1.module+el8.7.0+16806+4109802b, nodejs 16.17.1-1.module+el8.6.0+16848+a483195a, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802b, npm 8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a, nodejs-nodemon 2.0.19-1.module+el8.7.0+16061+0a247725, +5 more
    fixed: vendor fix RHSA-2022:6964
  • Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.17.1-1.el9_0, nodejs-libs 16.17.1-1.el9_0, npm 8.15.0-1.16.17.1.1.el9_0, nodejs-full-i18n 16.17.1-1.el9_0
    fixed: vendor fix RHSA-2022:6963
  • Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat Software Collections rh-nodejs14-npm, rh-nodejs14-nodejs, rh-nodejs14-nodejs-full-i18n
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
18 mo ago

Exploit prediction

2.09% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • hackerone.com https://hackerone.com/reports/1690000 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CNA 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
bitnami node
>=15.0.0, <15.14.1
>=16.0.0, <16.12.1
>=16.13.0, <16.17.1
>=18.0.0, <18.9.1
15.14.1
16.12.1
16.17.1
18.9.1
bitnami node-min
>=15.0.0, <15.14.1
>=16.0.0, <16.12.1
>=16.13.0, <16.17.1
>=18.0.0, <18.9.1
15.14.1
16.12.1
16.17.1
18.9.1

Affected products

  • NodeJS Node

Classification

Weakness
  • CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.