Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-35255

CVE-2022-35255: Node.js WebCrypto Information Disclosure

CVE-2022-35255 is a weak randomness vulnerability in Node.js 18 WebCrypto keygen that can expose cryptographic keys. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2022-35255 Overview

A weak randomness vulnerability exists in the WebCrypto key generation functionality of Node.js 18. The vulnerability stems from a problematic change to the EntropySource() function within SecretKeyGenTraits::DoKeyGen() located in src/crypto/crypto_keygen.cc. This implementation flaw introduces two critical problems: the code fails to verify the return value of EntropySource(), incorrectly assuming it always succeeds when it can and sometimes will fail; additionally, the random data returned by EntropySource() may not be cryptographically strong and therefore unsuitable as keying material.

Critical Impact

Attackers could potentially predict or derive cryptographic keys generated using the WebCrypto API, leading to unauthorized access to encrypted data or authenticated sessions in Node.js applications.

Affected Products

  • Node.js 18 (multiple versions)
  • Siemens SINEC INS (versions up to and including 1.0 SP2)
  • Debian Linux 11.0

Discovery Timeline

  • 2022-12-05 - CVE-2022-35255 published to NVD
  • 2025-04-24 - Last updated in NVD database

Technical Details for CVE-2022-35255

Vulnerability Analysis

This vulnerability represents an Insecure Random Number Generation flaw (CWE-338) in Node.js's cryptographic subsystem. The WebCrypto API is designed to provide secure cryptographic operations for web applications, including key generation for symmetric and asymmetric encryption. When the EntropySource() function fails silently or returns weak random data, the generated keys may be predictable or have reduced entropy, fundamentally undermining the security guarantees that applications rely upon when using these cryptographic primitives.

The implications are severe for applications using WebCrypto for sensitive operations such as session token generation, encryption key derivation, or digital signatures. Keys generated during periods when EntropySource() fails could potentially be reproduced by attackers who understand the failure conditions.

Root Cause

The root cause lies in the implementation of SecretKeyGenTraits::DoKeyGen() in the Node.js source file src/crypto/crypto_keygen.cc. The code calls EntropySource() to obtain random bytes for key generation but does not check whether this function returns successfully. When EntropySource() fails, the key generation continues with potentially uninitialized or predictable data. Furthermore, even when EntropySource() succeeds, the entropy it provides may not meet the cryptographic strength requirements necessary for secure key material.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker targeting this vulnerability would focus on scenarios where:

  1. Key Prediction: Identifying conditions under which EntropySource() fails or returns weak entropy, allowing prediction of generated keys
  2. Cryptographic Downgrade: Exploiting weak keys to decrypt sensitive communications or forge authenticated messages
  3. Session Compromise: If session tokens or authentication keys are generated using the flawed WebCrypto implementation, attackers could potentially hijack user sessions

The attack does not require local access to the vulnerable system and can be conducted remotely against any service using the affected Node.js WebCrypto API for key generation.

Detection Methods for CVE-2022-35255

Indicators of Compromise

  • Unusual patterns in cryptographic key generation logs or entropy pool depletion warnings
  • Detection of predictable or duplicate cryptographic keys across different sessions
  • Anomalous authentication successes without valid credentials
  • Signs of session hijacking or unauthorized access following key generation events

Detection Strategies

  • Monitor Node.js application logs for any entropy-related warnings or errors during key generation operations
  • Implement key randomness validation in test environments to detect weak key generation
  • Deploy network monitoring to identify potential exploitation attempts targeting cryptographic weaknesses
  • Audit applications using the WebCrypto API in Node.js 18 for vulnerable key generation patterns

Monitoring Recommendations

  • Enable verbose logging for cryptographic operations in Node.js applications
  • Implement alerts for entropy pool status on systems running vulnerable Node.js versions
  • Review authentication and session management logs for anomalies that could indicate compromised keys
  • Consider implementing external entropy source monitoring where applicable

How to Mitigate CVE-2022-35255

Immediate Actions Required

  • Upgrade Node.js to a patched version that addresses the EntropySource() issues
  • Audit and regenerate any cryptographic keys that were generated using vulnerable Node.js 18 versions
  • Review applications for WebCrypto API usage and assess potential exposure
  • Apply vendor patches for Siemens SINEC INS and Debian Linux if applicable

Patch Information

Security patches are available through the official Node.js release channels. For affected downstream products:

  • Siemens SINEC INS: Refer to Siemens Security Advisory SSA-332410 for patch information
  • Debian Linux: Apply updates per Debian Security Announcement DSA-5326
  • NetApp Products: Consult NetApp Security Advisory NTAP-20230113-0002

Additional technical details are available in HackerOne Report #1690000.

Workarounds

  • If immediate patching is not possible, consider using alternative cryptographic libraries for key generation that do not rely on the vulnerable Node.js WebCrypto implementation
  • Implement additional entropy validation checks before accepting generated keys
  • Deploy applications with enhanced entropy sources at the operating system level
  • Consider temporary migration to Node.js LTS versions that may not be affected by this specific vulnerability
bash
# Check Node.js version for vulnerability assessment
node --version

# Upgrade Node.js to the latest patched version (example using nvm)
nvm install --lts
nvm use --lts

# Verify the upgrade
node --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechNodejs

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability1.61%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-338
  • Technical References
  • Siemens Security Advisory SSA-332410

  • HackerOne Report #1690000

  • NetApp Security Advisory NTAP-20230113-0002

  • Debian Security Announcement DSA-5326
  • Related CVEs
  • CVE-2023-32005: Node.js Information Disclosure Vulnerability

  • CVE-2024-21890: Node.js Information Disclosure Flaw

  • CVE-2023-45143: Node.js Undici Information Disclosure Flaw

  • CVE-2022-32222: Node.js Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English