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

CVE-2026-45149: Brace-expansion Library DoS Vulnerability

CVE-2026-45149 is a denial of service flaw in Juliangruber brace-expansion that causes excessive memory allocation when expanding large numeric ranges. This post explains its impact, affected versions, and mitigation steps.

Published: June 4, 2026

CVE-2026-45149 Overview

CVE-2026-45149 is a denial-of-service vulnerability in the brace-expansion Node.js library maintained by juliangruber. The library generates arbitrary strings containing a common prefix and suffix from brace patterns such as {1..N}. In versions 5.0.0 through 5.0.5, the max option was applied too late during expansion. When a caller supplies a large numeric range like {1..10000000}, the sequence generation loop builds all 10 million intermediate elements before truncation occurs. Even with max=10, the process allocates approximately 505 MB and consumes roughly 800 ms of CPU time. The flaw is categorized under [CWE-400] (Uncontrolled Resource Consumption) and is fixed in version 5.0.6.

Critical Impact

An attacker who can supply or influence brace-expansion input can trigger excessive memory allocation and CPU usage, leading to denial of service in any Node.js application that processes untrusted patterns.

Affected Products

  • juliangruber brace-expansion 5.0.0
  • juliangruber brace-expansion 5.0.1 through 5.0.5
  • Node.js applications transitively depending on vulnerable brace-expansion versions

Discovery Timeline

  • 2026-05-29 - CVE-2026-45149 published to NVD
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-45149

Vulnerability Analysis

The brace-expansion library expands shell-style brace patterns into arrays of strings. The library accepts a max option intended to cap the size of the resulting expansion. In affected versions, this cap is enforced only after the full intermediate sequence is materialized in memory.

For numeric ranges such as {1..10000000}, the generator allocates every integer in the range before applying the max truncation. The resulting array consumes around 505 MB of heap memory and approximately 800 ms of CPU time per call. A single malicious pattern can therefore stall the event loop and exhaust Node.js process memory.

Applications that pass user-controlled input to brace-expansion, or to upstream consumers such as minimatch and glob matchers, inherit this exposure. Repeated requests amplify the effect into a sustained denial-of-service condition.

Root Cause

The defect resides in the sequence generation loop for numeric ranges. The loop iterates across the full numeric domain defined by the brace pattern and pushes each element into an intermediate array. The max boundary check executes after loop completion rather than inside the loop. The fix in version 5.0.6 moves the boundary enforcement into the generation loop so iteration halts once the limit is reached.

Attack Vector

Exploitation requires no authentication and no user interaction. An attacker submits a brace pattern containing a large numeric range to any application surface that forwards the input to brace-expansion. Common attack surfaces include file-matching APIs, configuration parsers, and HTTP endpoints that accept glob patterns. The vulnerability mechanism is described in the GitHub Security Advisory GHSA-jxxr-4gwj-5jf2.

Detection Methods for CVE-2026-45149

Indicators of Compromise

  • Node.js processes exhibiting sudden memory spikes of approximately 500 MB per request involving glob or pattern inputs.
  • Event loop stalls of several hundred milliseconds correlated with HTTP requests containing large brace-range expressions.
  • Repeated requests containing patterns such as {1..10000000} or similarly large numeric ranges in URLs, headers, or POST bodies.

Detection Strategies

  • Inventory Node.js dependencies using npm ls brace-expansion to identify transitive use of versions 5.0.0 through 5.0.5.
  • Inspect application logs for request patterns containing brace expressions with large numeric upper bounds.
  • Correlate process memory and CPU telemetry with inbound request payloads to identify resource-exhaustion attempts.

Monitoring Recommendations

  • Track Node.js heap usage and event-loop lag through APM tooling and alert on anomalous deviations.
  • Log and rate-limit endpoints that accept user-supplied glob or brace patterns.
  • Monitor for repeated client requests containing numeric ranges that exceed expected operational bounds.

How to Mitigate CVE-2026-45149

Immediate Actions Required

  • Upgrade brace-expansion to version 5.0.6 or later across all direct and transitive dependencies.
  • Run npm audit and npm update brace-expansion to resolve nested dependency trees.
  • Reject or sanitize untrusted brace patterns at the application boundary before passing them to glob or pattern libraries.

Patch Information

The vulnerability is fixed in brace-expansion version 5.0.6. The patch enforces the max limit inside the sequence generation loop, preventing allocation of intermediate elements beyond the configured cap. Refer to the GitHub Security Advisory GHSA-jxxr-4gwj-5jf2 for upstream remediation details.

Workarounds

  • Validate brace-expansion input length and reject patterns containing numeric ranges above an application-specific threshold.
  • Wrap calls to brace-expansion in worker threads with memory and time limits to contain resource impact.
  • Apply request size limits and rate limiting on endpoints that consume glob or brace pattern input.
bash
# Configuration example
npm install brace-expansion@^5.0.6
npm ls brace-expansion
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/TechJuliangruber Brace Expansion

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Vendor Resources
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-11956: OBS Student Affairs System XSS Flaw

  • CVE-2026-49199: Acer Predator Connect W6x Firmware RCE Flaw

  • CVE-2026-46344: Openquantumsafe Liboqs DOS Vulnerability

  • CVE-2026-44518: Openquantumsafe Liboqs 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