LiveActive security incident?Get immediate response
CVE Record

CVE-2022-35255: A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource...

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.

CriticalCVSS 9.1Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2022-35255 can cause Node.js WebCrypto key generation to use weak or failed randomness. If affected software creates cryptographic keys this way, keys may be less secret than expected, undermining encryption or signing trust. The provided sources rate it critical, but do not show active exploitation.

Executive priority

Treat this as high-priority remediation for environments using Node.js WebCrypto for encryption, signing, or token trust. It is critical because weak key generation can silently compromise security assumptions, but urgency should be highest where affected runtime versions and key generation are confirmed.

Technical view

The issue is CWE-338 in Node.js WebCrypto keygen, tied to EntropySource() handling in SecretKeyGenTraits::DoKeyGen(). The code reportedly did not check failure and could use randomness not suitable for keying material. CVSS 3.1 is 9.1 with network attack vector and high confidentiality and integrity impact.

Likely exposure

Exposure is most relevant where Node.js 18, or downstream products bundling affected Node.js packages, generate WebCrypto keys. The bundle also lists multiple Node major versions, but its description specifically calls out Node.js 18, so asset validation should confirm exact affected release guidance.

Exploitation context

The bundle marks KEV as false and provides no cited evidence of active exploitation. Practical impact depends on whether applications generate security-sensitive WebCrypto keys on affected Node.js builds and whether weak key material can be abused in the application context.

Researcher notes

The main uncertainty is version scope: the description emphasizes Node.js 18, while the affected list includes many major versions with defaultStatus unaffected. Avoid broad claims without checking vendor advisories. No exploit details are needed to validate exposure; focus on runtime version, WebCrypto use, and downstream product notices.

Mitigation direction

  • Inventory Node.js versions and products that bundle Node.js runtime components.
  • Review Node.js, Debian, Siemens, and NetApp advisories for fixed versions or packages.
  • Prioritize systems generating cryptographic keys through WebCrypto APIs.
  • Rotate keys generated on confirmed affected systems where vendor guidance recommends it.
  • Apply vendor updates through normal package or product update channels.

Validation and detection

  • Identify services running Node.js 18 or vendor products referencing this CVE.
  • Check whether the application uses WebCrypto key generation for sensitive keys.
  • Confirm installed package versions against Debian or vendor advisory status.
  • Review key lifecycle records for keys generated during affected runtime use.
  • Document compensating controls and remaining systems awaiting vendor patches.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-338: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-35255 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.1CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N3.95.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.1Critical
CVSS 3.1 vector shape for CVE-2022-35255Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
NodeJSNode4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 15.0, 17.0, 18.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-338 · source CWE mapping

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.