CVE-2022-35255
npm vulnerability analysis and mitigation

Overview

CVE-2022-35255 is a high severity vulnerability affecting Node.js versions 15.0.0 through 15.14.0, 16.0.0 through 16.12.0, 16.13.0 prior to 16.17.1, and 18.0.0 prior to 18.9.1. The vulnerability was discovered in September 2022 and relates to weak randomness in WebCrypto keygen functionality (Node.js Blog).

Technical details

The vulnerability exists due to improper handling of EntropySource() calls in SecretKeyGenTraits::DoKeyGen() within src/crypto/crypto_keygen.cc. The implementation does not check the return value of EntropySource(), incorrectly assuming it always succeeds. Additionally, the random data returned by EntropySource() may not be cryptographically strong and therefore not suitable as keying material (Debian Security).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information or addition/modification of data. The vulnerability has been assigned a CVSS score of 9.1 (CRITICAL) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NetApp Security).

Mitigation and workarounds

Users should upgrade to Node.js versions 16.17.1 or 18.9.1 or later to address this vulnerability. Additionally, it is recommended to roll-out and re-issue all keys generated with WebCrypto.subtle.generateKey() and re-evaluate the confidentiality of data encrypted with those keys (Node.js Blog).

Additional resources


SourceThis report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64756HIGH7.5
  • JavaScriptJavaScript
  • nodejs:22::nodejs-packaging-bundler
NoYesNov 17, 2025
CVE-2025-6965HIGH7.2
  • SQLiteSQLite
  • nodejs22-debugsource
NoYesJul 15, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • sqlite3
NoYesJul 29, 2025
CVE-2025-64118MEDIUM6.1
  • JavaScriptJavaScript
  • kibana-8.19
NoYesOct 30, 2025
CVE-2025-52099N/AN/A
  • SQLiteSQLite
  • sqlite-tcl
NoYesOct 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management