The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-34043

CVE-2026-34043: Serialize JavaScript DoS Vulnerability

CVE-2026-34043 is a Denial of Service flaw in Serialize JavaScript caused by CPU exhaustion when processing crafted array-like objects. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-34043 Overview

CVE-2026-34043 is a Denial of Service (DoS) vulnerability affecting the serialize-javascript library, which serializes JavaScript to a superset of JSON that includes regular expressions and functions. Prior to version 7.0.5, the library is vulnerable to CPU exhaustion when processing specially crafted "array-like" objects. When serializing an object that inherits from Array.prototype but has a very large length property, the process enters an intensive loop that consumes 100% CPU and hangs indefinitely.

Critical Impact

Applications using vulnerable versions of serialize-javascript can be rendered completely unresponsive when processing malicious input, leading to service disruption and potential cascading failures in dependent systems.

Affected Products

  • serialize-javascript versions prior to 7.0.5
  • Applications and build tools using serialize-javascript for data serialization
  • Node.js applications processing untrusted serialized data

Discovery Timeline

  • 2026-03-31 - CVE CVE-2026-34043 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-34043

Vulnerability Analysis

This vulnerability falls under CWE-400 (Uncontrolled Resource Consumption). The root issue lies in how the serialization logic determines whether an array is sparse. The vulnerable code path triggers when an attacker provides a malicious object that inherits from Array.prototype but has an artificially inflated length property, causing the serializer to enter a computationally expensive loop.

The attack can be executed over the network by any unauthenticated attacker who can supply input that gets serialized by the affected library. Successful exploitation results in complete denial of service through CPU exhaustion, with the affected process becoming unresponsive.

Root Cause

The vulnerability stems from the use of instanceof Array for type checking combined with an inefficient sparse array detection mechanism. The original code used the filter() method to count actual elements, which iterates based on the array's length property. When a malicious object with an extremely large length value (such as Number.MAX_SAFE_INTEGER) is passed, this creates an effectively infinite loop that exhausts CPU resources.

Attack Vector

An attacker can exploit this vulnerability by crafting a JavaScript object that:

  1. Inherits from Array.prototype (passing the instanceof Array check)
  2. Contains an extremely large length property value
  3. Is passed to the serialize() function either directly or through application input

When the vulnerable code attempts to determine if this object is a sparse array, it enters a loop bounded by the malicious length value, causing CPU exhaustion.

javascript
                 return '@__S-' + UID + '-' + (sets.push(origValue) - 1) + '__@';
             }
 
-            if(origValue instanceof Array) {
-                var isSparse = origValue.filter(function(){return true}).length !== origValue.length;
+            if(Array.isArray(origValue)) {
+                var isSparse = Object.keys(origValue).length !== origValue.length;
                 if (isSparse) {
                     return '@__A-' + UID + '-' + (arrays.push(origValue) - 1) + '__@';
                 }

Source: GitHub Commit Update

The patch addresses this vulnerability by replacing instanceof Array with Array.isArray() for more accurate type checking, and by using Object.keys(origValue).length instead of filter() to count actual elements. This prevents malicious objects with inflated length properties from triggering the expensive iteration.

Detection Methods for CVE-2026-34043

Indicators of Compromise

  • Sudden CPU spikes reaching 100% utilization in Node.js processes
  • Application or service hangs with no response to requests
  • Event loop blocking detected in Node.js process monitoring
  • Memory allocation patterns indicating infinite loop behavior

Detection Strategies

  • Monitor Node.js processes for sustained high CPU usage without corresponding request throughput
  • Implement request timeout mechanisms to detect hanging serialization operations
  • Use application performance monitoring (APM) to identify anomalous serialization durations
  • Deploy SentinelOne's behavioral detection to identify resource exhaustion patterns

Monitoring Recommendations

  • Set up alerting for CPU utilization exceeding normal thresholds on application servers
  • Implement distributed tracing to identify stuck serialization calls
  • Monitor application response times for degradation indicating DoS conditions
  • Use SentinelOne Singularity platform for real-time threat detection and response

How to Mitigate CVE-2026-34043

Immediate Actions Required

  • Upgrade serialize-javascript to version 7.0.5 or later immediately
  • Audit application dependencies using npm audit or yarn audit
  • Review any code paths that pass untrusted input to serialization functions
  • Implement input validation to reject objects with abnormally large length properties

Patch Information

The vulnerability has been patched in serialize-javascript version 7.0.5. The fix (commit f147e90269b58bb6e539cfdf3d0e20d6ad14204b) modifies the array type checking and sparse detection logic to prevent exploitation. Organizations should update immediately by modifying their package.json or running the appropriate package manager update command.

For detailed information, see the GitHub Security Advisory GHSA-qj8w-gfj5-8c6v and the GitHub Release v7.0.5.

Workarounds

  • Validate input objects before serialization to ensure length properties are within acceptable bounds
  • Implement request timeouts to prevent indefinite hangs from impacting entire services
  • Use worker threads or separate processes for serialization to isolate potential DoS impact
  • Apply input sanitization at API boundaries to reject suspicious array-like objects
bash
# Update serialize-javascript to patched version
npm update serialize-javascript@7.0.5

# Verify installed version
npm list serialize-javascript

# Run security audit to check for other vulnerabilities
npm audit

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJavascript

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Commit Update

  • GitHub Release v7.0.5

  • GitHub Security Advisory GHSA-qj8w-gfj5-8c6v
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS 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