Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @isaacs/brace-expansion
  4. ›
  5. GHSA-7h2j-956f-4vf2

GHSA-7h2j-956f-4vf2: @isaacs/brace-expansion has Uncontrolled Resource Consumption

February 3, 2026

@isaacs/brace-expansion is vulnerable to a Denial of Service (DoS) issue caused by unbounded brace range expansion. When an attacker provides a pattern containing repeated numeric brace ranges, the library attempts to eagerly generate every possible combination synchronously. Because the expansion grows exponentially, even a small input can consume excessive CPU and memory and may crash the Node.js process.

References

  • github.com/advisories/GHSA-7h2j-956f-4vf2
  • github.com/isaacs/brace-expansion
  • github.com/isaacs/brace-expansion/security/advisories/GHSA-7h2j-956f-4vf2

Code Behaviors & Features

Detect and mitigate GHSA-7h2j-956f-4vf2 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.1

Fixed versions

  • 5.0.1

Solution

Upgrade to version 5.0.1 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/@isaacs/brace-expansion/GHSA-7h2j-956f-4vf2.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:38 +0000.