A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-8723

CVE-2026-8723: qs Library DoS Vulnerability

CVE-2026-8723 is a denial of service vulnerability in the qs library that causes TypeError when stringify is called with specific parameters on arrays containing null or undefined values. This article covers technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-8723 Overview

CVE-2026-8723 is a null pointer dereference vulnerability [CWE-476] in the qs query string library for Node.js. The flaw occurs in qs.stringify when called with both arrayFormat: 'comma' and encodeValuesOnly: true on an array containing null or undefined elements. The function throws a synchronous TypeError instead of returning a query string, bypassing the skipNulls and strictNullHandling options entirely. Affected versions span >=6.11.1 <6.15.2, with the fix released in v6.15.2.

Critical Impact

Applications calling qs.stringify with the vulnerable option combination on arrays containing null or undefined throw synchronously, returning HTTP 500 responses in framework-handled requests or terminating workers in unhandled contexts.

Affected Products

  • qs Node.js library versions >=6.11.1 <6.15.2
  • Node.js applications using arrayFormat: 'comma' with encodeValuesOnly: true
  • Downstream frameworks and packages depending on vulnerable qs versions

Discovery Timeline

  • 2026-05-17 - CVE-2026-8723 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2026-8723

Vulnerability Analysis

The vulnerability resides in lib/stringify.js at line 145, within the comma-format encoding branch. When encodeValuesOnly is enabled, the code maps array elements through the raw encoder before joining them into a comma-separated string. The encoder function in lib/utils.js at line 195 reads str.length without a null guard, causing a TypeError when it encounters a null or undefined array element.

The skipNulls and strictNullHandling options are evaluated in a per-element loop that executes after the encoder map. Because the throw happens during the mapping step, neither null-handling option ever runs. This is the same class of bug previously fixed in the filter-array path (commit 0c180a4).

The vulnerable code shape was introduced in commit 4c4b23d ("encode comma values more consistently", PR #463) and first shipped in v6.11.1. Earlier versions (6.7.x through 6.11.0) joined array elements before encoding and are not affected.

Root Cause

The utils.encode function dereferences str.length on its input without first checking for null or undefined. The maybeMap helper applies the encoder to every element of the array, including null-valued entries, before the main loop has a chance to apply the configured null-handling policy.

Attack Vector

An attacker supplies a JSON request body containing an array with a null element to an endpoint that subsequently passes the parsed data to qs.stringify with the vulnerable option combination. The synchronous throw produces a denial-of-service condition for the affected request. Standard HTML form submissions cannot trigger this path because they produce strings or omitted fields rather than literal null values.

javascript
// Proof of concept from the security advisory
const qs = require('qs');

qs.stringify({ a: [null, 'b'] },      { arrayFormat: 'comma', encodeValuesOnly: true });
qs.stringify({ a: [undefined, 'b'] }, { arrayFormat: 'comma', encodeValuesOnly: true });
qs.stringify({ a: [null] },           { arrayFormat: 'comma', encodeValuesOnly: true });
// TypeError: Cannot read properties of null (reading 'length')
//     at encode (lib/utils.js:195:13)
//     at Object.maybeMap (lib/utils.js:322:37)
//     at stringify (lib/stringify.js:145:25)

Source: GitHub Security Advisory GHSA-q8mj-m7cp-5q26

Detection Methods for CVE-2026-8723

Indicators of Compromise

  • Repeated HTTP 500 responses originating from request handlers that invoke qs.stringify
  • Stack traces referencing lib/utils.js:195 and lib/stringify.js:145 with TypeError: Cannot read properties of null (reading 'length')
  • Worker process restarts in background jobs, startup scripts, or stream pipelines that call qs.stringify outside a framework error boundary

Detection Strategies

  • Audit package-lock.json and yarn.lock files for qs versions in the range >=6.11.1 <6.15.2
  • Run npm ls qs to enumerate transitive dependencies pinning a vulnerable version
  • Use Software Composition Analysis (SCA) tools to flag the GitHub Security Advisory GHSA-q8mj-m7cp-5q26
  • Static analysis to identify call sites using both arrayFormat: 'comma' and encodeValuesOnly: true

Monitoring Recommendations

  • Track 5xx error rates and correlate against deploys of services that depend on qs
  • Aggregate Node.js uncaught exception telemetry for TypeError events matching the vulnerable stack frames
  • Alert on background job failure spikes that match the qs.stringify call signature

How to Mitigate CVE-2026-8723

Immediate Actions Required

  • Upgrade qs to v6.15.2 or later across all direct and transitive dependencies
  • Rebuild and redeploy affected Node.js services after lockfile regeneration
  • Inventory call sites passing user-controlled arrays into qs.stringify with the vulnerable option combination

Patch Information

The fix landed in commit 21f80b3 on the main branch and was released as v6.15.2. The patch wraps the encoder in a closure that passes null and undefined through unchanged, allowing the existing skipNulls and strictNullHandling logic in the main loop to handle them correctly.

javascript
// Patch from lib/stringify.js (line 145)
if (generateArrayPrefix === 'comma' && isArray(obj)) {
    // we need to join elements in
    if (encodeValuesOnly && encoder) {
-       obj = utils.maybeMap(obj, encoder);
+       obj = utils.maybeMap(obj, function (v) {
+           return v == null ? v : encoder(v);
+       });
    }
    objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
} else if (isArray(filter)) {

Source: GitHub Commit 21f80b3

Workarounds

  • Sanitize input arrays to remove null and undefined entries before calling qs.stringify
  • Avoid combining arrayFormat: 'comma' with encodeValuesOnly: true, or set encodeValuesOnly: false to use the unaffected encoding path
  • Wrap qs.stringify calls in try/catch blocks when used outside framework error boundaries (background jobs, startup paths, stream pipelines)
bash
# Upgrade qs to the patched version
npm install qs@^6.15.2

# Verify resolved version across the dependency tree
npm ls qs

# Regenerate lockfile and audit
npm audit fix

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.03%

  • 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-476
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-2391: qs Library DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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