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-27601

CVE-2026-27601: Underscorejs Underscore DoS Vulnerability

CVE-2026-27601 is a denial of service flaw in Underscorejs Underscore caused by unbounded recursion in _.flatten and _.isEqual functions. This article covers technical details, affected versions, and mitigation steps.

Published: March 6, 2026

CVE-2026-27601 Overview

CVE-2026-27601 is a Denial of Service (DoS) vulnerability affecting Underscore.js, a popular utility-belt library for JavaScript. The vulnerability exists in the _.flatten and _.isEqual functions, which implement recursion without enforcing a depth limit. Under specific conditions, an attacker can exploit this flaw to trigger a stack overflow, causing application crashes and service disruption.

Critical Impact

Remote attackers can cause application-level Denial of Service by submitting deeply nested data structures that trigger uncontrolled stack consumption in vulnerable Underscore.js functions.

Affected Products

  • Underscore.js versions prior to 1.13.8
  • Node.js applications using vulnerable underscorejs:underscore package
  • Web applications processing untrusted JSON input with Underscore.js utilities

Discovery Timeline

  • 2026-03-03 - CVE-2026-27601 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-27601

Vulnerability Analysis

This vulnerability falls under CWE-770 (Allocation of Resources Without Limits or Throttling). The core issue stems from the recursive nature of the _.flatten and _.isEqual functions, which process nested data structures without implementing safeguards against excessive recursion depth.

When processing user-controlled input—particularly data parsed via JSON.parse without depth validation—an attacker can craft malicious payloads containing deeply nested arrays or objects. When these structures are passed to the vulnerable functions, the recursive calls exhaust the JavaScript call stack, resulting in a stack overflow exception.

The attack surface requires specific conditions to be exploitable:

For _.flatten: The attacker must be able to submit a data structure consisting of nested arrays at all levels, AND no finite depth limit is passed as the second argument to the function.

For _.isEqual: The vulnerability requires a code path where two distinct data structures from the same remote client are compared. This could occur when client-submitted data is stored in a database and later compared against new submissions, or when a single request's data is parsed twice, creating two non-identical but equivalent structures.

Root Cause

The root cause is the absence of recursion depth limits in the _.flatten and _.isEqual implementations. Both functions traverse nested data structures recursively, trusting that input will have reasonable depth. Without explicit depth checking or iterative alternatives, these functions are susceptible to stack exhaustion when processing adversarially crafted deep structures.

The vulnerability is particularly dangerous because exceptions from stack overflows are not caught by the library, propagating up and potentially crashing the entire application or service.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker exploits this vulnerability by:

  1. Crafting a deeply nested JSON payload (arrays for _.flatten, objects/arrays for _.isEqual)
  2. Submitting the malicious payload to an endpoint that processes data using vulnerable Underscore.js functions
  3. The recursive function calls exhaust the stack, triggering an uncaught exception
  4. The application crashes or becomes unresponsive

The vulnerability mechanism involves deeply nested recursive data structures that exhaust the JavaScript call stack. For _.flatten, this involves arrays nested to extreme depths. For _.isEqual, it requires two such structures to be compared. When the recursion depth exceeds the JavaScript engine's stack limit (typically several thousand frames), the process throws a RangeError: Maximum call stack size exceeded. See the GitHub Security Advisory GHSA-qpx9-hpmf-5gmw for detailed technical information.

Detection Methods for CVE-2026-27601

Indicators of Compromise

  • Repeated application crashes with "Maximum call stack size exceeded" errors
  • Unusual patterns of deeply nested JSON payloads in request logs
  • Memory consumption spikes followed by process termination
  • Service unavailability correlated with specific API endpoint requests

Detection Strategies

  • Monitor application logs for RangeError exceptions indicating stack overflow conditions
  • Implement request body size and nesting depth limits at the API gateway or web server level
  • Perform dependency scanning to identify Underscore.js versions prior to 1.13.8
  • Analyze incoming JSON payloads for abnormal nesting depth patterns

Monitoring Recommendations

  • Configure alerting for repeated process restarts or crash loops in Node.js applications
  • Enable detailed exception logging to capture stack overflow events
  • Monitor CPU and memory metrics for patterns consistent with recursive exhaustion attacks
  • Implement rate limiting on endpoints that process complex data structures

How to Mitigate CVE-2026-27601

Immediate Actions Required

  • Upgrade Underscore.js to version 1.13.8 or later immediately
  • Audit codebase for usages of _.flatten and _.isEqual with untrusted input
  • Implement input validation to limit JSON nesting depth before processing
  • Consider adding try-catch blocks around vulnerable function calls as a defense-in-depth measure

Patch Information

The vulnerability has been fixed in Underscore.js version 1.13.8. The fix is available in the following commits:

  • GitHub Commit 411e222
  • GitHub Commit a6e23ae

For complete details, refer to the GitHub Security Advisory GHSA-qpx9-hpmf-5gmw.

Workarounds

  • Always pass a finite depth limit as the second argument when calling _.flatten
  • Implement JSON parsing with depth limits using libraries like json-bigint or custom validators
  • Add middleware to reject requests with excessively nested data structures
  • Use iterative alternatives to _.flatten and _.isEqual when processing untrusted input
bash
# Update Underscore.js to patched version
npm update underscore@1.13.8

# Verify installed version
npm list underscore

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechUnderscorejs

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Vendor Resources
  • GitHub Commit 411e222

  • GitHub Commit a6e23ae

  • GitHub Security Advisory GHSA-qpx9-hpmf-5gmw
  • Related CVEs
  • CVE-2021-23358: Underscorejs Underscore RCE Vulnerability
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