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-2026-2391

CVE-2026-2391: qs Library DOS Vulnerability

CVE-2026-2391 is a denial-of-service vulnerability in qs library that allows attackers to bypass arrayLimit enforcement with comma-separated values, causing memory exhaustion. This article covers technical details, impact, and mitigation.

Published: February 13, 2026

CVE-2026-2391 Overview

CVE-2026-2391 is an input validation vulnerability in the qs query string parsing library that allows attackers to bypass the arrayLimit protection mechanism when the comma: true option is enabled. This bypass enables the creation of arbitrarily large arrays from a single HTTP parameter, leading to memory exhaustion and denial-of-service conditions.

The vulnerability exists because the limit check for arrayLimit (default: 20) and the optional throwOnLimitExceeded occur after the comma-handling logic in the parseArrayValue function. When comma parsing is enabled, the split(',') operation returns the array immediately, completely skipping the subsequent limit enforcement checks.

Critical Impact

Attackers can send a single parameter containing millions of commas (e.g., ?param=,,,,,,,,...), causing the application to allocate massive arrays in memory without triggering any limits, leading to denial-of-service via memory exhaustion.

Affected Products

  • qs (query string parsing library) - versions prior to the security patch
  • Node.js applications using qs with comma: true configuration
  • Web frameworks and applications that depend on qs for query string parsing

Discovery Timeline

  • February 12, 2026 - CVE-2026-2391 published to NVD
  • February 12, 2026 - Last updated in NVD database

Technical Details for CVE-2026-2391

Vulnerability Analysis

This vulnerability represents a bypass of the array limit enforcement mechanism in the qs library, similar to the bracket notation bypass addressed in CVE-2025-15284. When the comma option is set to true (not the default, but configurable in applications), qs allows parsing comma-separated strings as arrays (e.g., ?param=a,b,c becomes ['a', 'b', 'c']).

The core issue lies in the execution order within lib/parse.js. The vulnerable code processes comma-separated values before enforcing the arrayLimit constraint, creating a logic flaw that can be exploited for denial-of-service attacks.

The vulnerability is classified under CWE-20 (Improper Input Validation), as the library fails to properly validate and limit input when processing comma-separated array values.

Root Cause

The root cause is an improper ordering of security checks in the parsing logic. The split(',') operation executes first and returns the resulting array immediately, completely bypassing the subsequent arrayLimit and throwOnLimitExceeded checks that were intended to protect against oversized arrays.

The vulnerable code in lib/parse.js (lines ~40-50) demonstrates this issue:

  • First, the code checks if the value is a string containing commas
  • It immediately returns the split array without any size validation
  • The limit enforcement code that follows is never executed for comma-parsed values

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending HTTP requests with query parameters containing extensive comma-separated values. A payload as simple as ?param= followed by millions of commas will cause the server to allocate a massive array in memory.

javascript
// Vulnerable code pattern in lib/parse.js (lines ~40-50)
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
    return val.split(',');  // Returns immediately, bypassing limit check
}

if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
    throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
}

return val;

Source: CVE-2026-2391 Description

Detection Methods for CVE-2026-2391

Indicators of Compromise

  • Sudden spikes in server memory usage correlating with incoming HTTP requests
  • Application crashes or out-of-memory errors in Node.js processes handling query string parsing
  • HTTP access logs showing unusually long query strings with repeated comma characters
  • Process monitoring alerts indicating memory exhaustion in web application workers

Detection Strategies

  • Monitor for HTTP requests with abnormally large query string parameters containing extensive comma sequences
  • Implement application-level logging to track qs parsing operations and flag oversized array creations
  • Deploy web application firewall (WAF) rules to detect and block requests with excessive comma-separated values in parameters
  • Use runtime application self-protection (RASP) solutions to monitor memory allocation patterns during request processing

Monitoring Recommendations

  • Configure alerting thresholds for memory utilization spikes in Node.js application servers
  • Implement request size limits at the load balancer or reverse proxy level
  • Enable detailed logging for query string parsing operations to identify potential exploitation attempts
  • Monitor application error logs for RangeError exceptions related to array limits, which may indicate attempted attacks

How to Mitigate CVE-2026-2391

Immediate Actions Required

  • Update the qs library to the patched version that includes the security fix
  • Review application configurations to identify instances where comma: true is enabled
  • Implement request validation middleware to limit query string parameter lengths
  • Consider disabling the comma option if it is not a required feature for your application

Patch Information

A security patch has been released that enforces arrayLimit on comma-parsed values. The fix adds proper limit checking immediately after comma-separated values are split into arrays, ensuring consistent enforcement regardless of the parsing method used.

For detailed patch information, refer to the GitHub Commit Details and the GitHub Security Advisory.

Workarounds

  • Disable the comma: true option if comma-separated array parsing is not required for your application
  • Implement middleware to validate and reject requests with excessively long query string parameters before they reach the qs parser
  • Configure web server or reverse proxy limits on query string length to prevent oversized requests from reaching the application
  • Use application-level rate limiting to reduce the impact of potential DoS attempts
javascript
// Security patch in lib/parse.js - enforces arrayLimit on comma-parsed values
            val = isArray(val) ? [val] : val;
        }

+        if (options.comma && isArray(val) && val.length > options.arrayLimit) {
+            if (options.throwOnLimitExceeded) {
+                throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
+            }
+            val = utils.combine([], val, options.arrayLimit, options.plainObjects);
+        }

        if (key !== null) {
            var existing = has.call(obj, key);
            if (existing && options.duplicates === 'combine') {

Source: GitHub Commit

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechQs

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/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-20
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF 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