Weak Randomness in WebCrypto Keygen in Node.js
CVE-2022-35255

9.1CRITICAL

Key Information:

Vendor

Nodejs

Status
Vendor
CVE Published:
5 December 2022

What is CVE-2022-35255?

A vulnerability exists in Node.js 18 due to inadequate randomness in the WebCrypto key generation process. The issue stems from a failure to properly handle the return value of EntropySource(), which may not always succeed and can result in weak randomness. This can lead to cryptographic keys that are not sufficiently strong for secure operations, posing risks for applications relying on reliable key generation for encryption.

Affected Version(s)

Node 4.0 < 4.*

Node 5.0 < 5.*

Node 6.0 < 6.*

References

CVSS V3.1

Score:
9.1
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.