Node.js: Weak Randomness in WebCrypto Keygen

nodejs Updated 02 Oct 2025

Summary

08/11/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:7821: Important: nodejs:18 security update. Affects nodejs versions < 1:18.9.1-1.module_el8.7.0+3343+ea2b7901. Fixed in 1:18.9.1-1.module_el8.7.0+3343+ea2b7901. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Node.js is a software development platform for building fast and scalable network applications in the JavaScript programming language. It provides a runtime environment for executing JavaScript code outside of a web browser. Node.js is widely used for server-side and networking applications due to its event-driven architecture and non-blocking I/O model.

Vulnerability Detail

The vulnerability identified as CVE-2022-35255 in Node.js is related to weak randomness in WebCrypto key generation. This vulnerability could allow an attacker to predict or guess the generated keys, compromising the security of cryptographic operations. The impact of this vulnerability can vary depending on the specific use case and the sensitivity of the data being protected.

How To Fix

Minimum fixed version

1:18.9.1-1.module_el8.7.0+3343+ea2b7901

This is the first release that contains the fix.

sudo dnf update nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. Updating to the latest version of Node.js is the recommended solution.

Conclusion

Node.js version 18.9.1 includes a security update that addresses the weak randomness issue in WebCrypto key generation. It is important to update to this version or later to ensure the security of Node.js applications. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

Node.js is a software development platform for building fast and scalable network applications in JavaScript.

WebCrypto is a JavaScript API for performing cryptographic operations in web applications.

This vulnerability could allow an attacker to predict or guess the generated keys, compromising the security of cryptographic operations in Node.js applications.

There is no known exploit for this vulnerability at the moment.

The recommended mitigation is to update the Node.js package to the latest version, which includes a fix for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

1:18.9.1-1.module_el8.7.0+3343+ea2b7901

This is the first release that contains the fix.

sudo dnf update nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback