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
    • 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-2026-42039

CVE-2026-42039: Axios HTTP Client DOS Vulnerability

CVE-2026-42039 is a denial of service flaw in Axios HTTP client caused by unlimited recursion in toFormData. Deeply nested objects crash Node.js processes. This article covers technical details, affected versions, and patches.

Published: April 30, 2026

CVE-2026-42039 Overview

A Denial of Service vulnerability exists in Axios, a widely-used promise-based HTTP client for browser and Node.js environments. The vulnerability resides in the toFormData function, which recursively processes nested objects without implementing a depth limit. When an attacker supplies a deeply nested object as request data, the recursive processing exhausts the call stack, causing the Node.js process to crash with a RangeError.

Critical Impact

Attackers can crash Node.js applications using Axios by submitting deeply nested request payloads, leading to service unavailability for legitimate users.

Affected Products

  • Axios versions prior to 1.15.1
  • Axios versions prior to 0.31.1
  • Applications using Axios for HTTP request handling in Node.js environments

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-42039 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-42039

Vulnerability Analysis

This vulnerability is classified under CWE-674 (Uncontrolled Recursion). The toFormData utility function in Axios is designed to convert JavaScript objects into FormData format for HTTP requests. However, the implementation lacks proper recursion depth controls when traversing nested object structures.

When processing request data, the function recursively walks through all nested properties without checking how deep the object hierarchy extends. This design flaw allows malicious actors to craft payloads with extreme nesting levels that exceed Node.js's default call stack size, triggering a RangeError: Maximum call stack size exceeded error and terminating the process.

The network-accessible nature of this vulnerability means any endpoint accepting user-controlled data that gets processed through toFormData could be exploited without authentication.

Root Cause

The root cause is the absence of recursion depth validation in the toFormData function. The function iterates through object properties using recursive calls without implementing a maximum depth counter or iterative approach. This oversight allows unbounded stack growth when processing deeply nested input structures, eventually exceeding JavaScript engine limits.

Attack Vector

Exploitation occurs over the network when an attacker sends an HTTP request containing a deeply nested JSON object to a vulnerable application endpoint. The attack requires no authentication or user interaction. When the application attempts to convert this payload to FormData using the vulnerable Axios function, the excessive recursion depth causes the Node.js runtime to crash.

The attack payload consists of an object nested hundreds or thousands of levels deep, structured to maximize stack consumption during the recursive traversal. Since the vulnerability affects availability rather than confidentiality or integrity, the primary impact is service disruption.

Detection Methods for CVE-2026-42039

Indicators of Compromise

  • Node.js process crashes with RangeError: Maximum call stack size exceeded errors
  • Repeated application restarts or process manager interventions
  • HTTP requests containing abnormally nested JSON payloads in logs
  • Unusual memory or CPU patterns preceding process termination

Detection Strategies

  • Monitor application logs for RangeError exceptions originating from Axios module paths
  • Implement request payload depth analysis at the API gateway or WAF level
  • Deploy runtime application self-protection (RASP) to detect excessive recursion patterns
  • Audit package.json and package-lock.json for vulnerable Axios versions (< 1.15.1 or < 0.31.1)

Monitoring Recommendations

  • Configure alerting on Node.js process crashes and unexpected restarts
  • Implement request body size and complexity limits at load balancer or reverse proxy
  • Enable detailed error logging for HTTP request handlers
  • Monitor for patterns of requests with deeply nested JSON structures

How to Mitigate CVE-2026-42039

Immediate Actions Required

  • Update Axios to version 1.15.1 or later for the 1.x branch
  • Update Axios to version 0.31.1 or later for the 0.x branch
  • Review all applications using Axios and prioritize updates for internet-facing services
  • Implement input validation to reject requests with excessive object nesting depth

Patch Information

The Axios maintainers have released security patches addressing this vulnerability. Version 1.15.1 and version 0.31.1 include fixes that implement proper recursion depth limits in the toFormData function. For detailed patch information, see the GitHub Security Advisory.

Workarounds

  • Implement middleware to validate and limit JSON object nesting depth before processing
  • Configure request body parsers with strict depth limits
  • Use API gateway rules to reject payloads exceeding a reasonable nesting threshold
  • Deploy web application firewall rules to filter deeply nested request bodies
bash
# Update Axios to patched version
npm update axios@1.15.1

# Verify installed version
npm list axios

# Alternative: Update using yarn
yarn upgrade axios@1.15.1

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAxios

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-674
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42034: Axios HTTP Client DOS Vulnerability

  • CVE-2026-42036: Axios HTTP Client DOS Vulnerability

  • CVE-2026-39865: Axios HTTP/2 DoS Vulnerability

  • CVE-2026-25639: Axios HTTP Client DoS 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