Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

brace-expansion

Latest version: v5.1.2

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: isaacs, juliangruber
249 Stars
182 Forks
14 Versions
3.5B Downloads
JavaScript Repo language

Scan summary

brace-expansion was last scanned on 30 Nov 2026 at version 5.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 2 were published on 30 Nov 2026.
  • Findings: No rules fired in version 5.1.2.
  • Downloads: 3,521,338,068 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.1.2 LATEST 30 Nov 2026 No rules fired
5.1.1 30 Nov 2026 No rules fired
5.1.0 23 Nov 2026 No rules fired
1.1.22 11 Nov 2026 Not shown
3.0.10 11 Nov 2026 Not shown

No rules fired in 5.1.2

Findings

Findings for v5.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.1.2; other versions have their own rules, not their own score.

Known vulnerabilities

11 CVEs · last 28 Sep 2026

0 CRITICAL 8 HIGH 2 MEDIUM 1 LOW

Versions

  • ≥ 5.0.12
  • ≥ 5.0.11, < 5.0.12 1 MEDIUM
  • ≥ 5.0.10, < 5.0.11 1 HIGH 1 MEDIUM
  • ≥ 5.0.9, < 5.0.10 2 HIGH 1 MEDIUM
  • ≥ 5.0.8, < 5.0.9 3 HIGH 1 MEDIUM
  • ≥ 5.0.7, < 5.0.8 4 HIGH 1 MEDIUM
  • ≥ 5.0.6, < 5.0.7 5 HIGH 1 MEDIUM
  • ≥ 5.0.5, < 5.0.6 6 HIGH 1 MEDIUM
  • ≥ 5.0.0, < 5.0.5 7 HIGH 1 MEDIUM
  • ≥ 4.0.1, < 5.0.0 6 HIGH 1 MEDIUM
Show all 40 version ranges
  • ≥ 4.0.0, < 4.0.1 6 HIGH 1 MEDIUM 1 LOW
  • ≥ 3.0.9, < 4.0.0 1 HIGH
  • ≥ 3.0.8, < 3.0.9 1 HIGH 1 MEDIUM
  • ≥ 3.0.7, < 3.0.8 2 HIGH 1 MEDIUM
  • ≥ 3.0.6, < 3.0.7 3 HIGH 1 MEDIUM
  • ≥ 3.0.3, < 3.0.6 4 HIGH 1 MEDIUM
  • ≥ 3.0.2, < 3.0.3 5 HIGH 1 MEDIUM
  • ≥ 3.0.1, < 3.0.2 6 HIGH 1 MEDIUM
  • ≥ 3.0.0, < 3.0.1 6 HIGH 1 MEDIUM 1 LOW
  • ≥ 2.1.7, < 3.0.0
  • ≥ 2.1.6, < 2.1.7 1 MEDIUM
  • ≥ 2.1.5, < 2.1.6 1 HIGH 1 MEDIUM
  • ≥ 2.1.4, < 2.1.5 2 HIGH 1 MEDIUM
  • ≥ 2.1.3, < 2.1.4 3 HIGH 1 MEDIUM
  • ≥ 2.1.2, < 2.1.3 4 HIGH 1 MEDIUM
  • ≥ 2.0.3, < 2.1.2 5 HIGH 1 MEDIUM
  • ≥ 2.0.2, < 2.0.3 6 HIGH 1 MEDIUM
  • ≥ 2.0.0, < 2.0.2 6 HIGH 1 MEDIUM 1 LOW
  • ≥ 1.1.21, < 2.0.0
  • ≥ 1.1.20, < 1.1.21 1 MEDIUM
  • ≥ 1.1.19, < 1.1.20 1 HIGH 1 MEDIUM
  • ≥ 1.1.18, < 1.1.19 2 HIGH 1 MEDIUM
  • ≥ 1.1.17, < 1.1.18 3 HIGH 1 MEDIUM
  • ≥ 1.1.16, < 1.1.17 4 HIGH 1 MEDIUM
  • ≥ 1.1.13, < 1.1.16 5 HIGH 1 MEDIUM
  • ≥ 1.1.12, < 1.1.13 6 HIGH 1 MEDIUM
  • ≥ 1.1.7, < 1.1.12 6 HIGH 1 MEDIUM 1 LOW
  • > 1.1.6, < 1.1.7 7 HIGH 1 MEDIUM 1 LOW
  • ≥ 1.0.0, ≤ 1.1.6 7 HIGH 2 MEDIUM 1 LOW
  • < 1.0.0 7 HIGH 2 MEDIUM

Vulnerabilities

  • CVE-2026-102278 High 28 Sep 2026 brace-expansion: brace-expansion: Denial of Service via uncontrolled recursion in nested brace patterns Fixed in 5.0.11, 3.0.8, 2.1.6, 1.1.20
  • CVE-2026-102277 Medium 28 Sep 2026 brace-expansion: brace-expansion: Denial of Service via crafted brace patterns Fixed in 5.0.12, 3.0.9, 2.1.7, 1.1.21
  • CVE-2026-102276 High 28 Sep 2026 brace-expansion: brace-expansion: Denial of Service via stack exhaustion from crafted brace patterns Fixed in 5.0.10, 3.0.7, 2.1.5, 1.1.19
  • CVE-2026-69152 High 3 Aug 2026 brace-expansion: DoS via unbounded intermediate arrays, bypassing the CVE-2026-14257 mitigation Fixed in 1.1.18, 2.1.4, 3.0.6, 5.0.9
  • CVE-2026-14257 High 23 Jul 2026 brace-expansion: Brace-expansion: Denial of Service via memory exhaustion in expand() function Fixed in 5.0.8, 3.0.3, 2.1.3, 1.1.17
  • CVE-2026-13149 High 30 Jun 2026 brace-expansion: Brace-expansion: Denial of Service due to exponential-time complexity Fixed in 5.0.7, 1.1.16, 2.1.2
  • CVE-2026-45149 High 29 May 2026 brace-expansion: brace-expansion: Denial of Service due to excessive memory allocation when expanding large numeric ranges Fixed in 5.0.6
  • CVE-2026-33750 High 27 Mar 2026 brace-expansion: brace-expansion: Denial of Service via zero step value in brace pattern Fixed in 5.0.5, 3.0.2, 2.0.3, 1.1.13
  • CVE-2025-5889 Low 9 Jun 2025 brace-expansion: juliangruber brace-expansion index.js expand redos Fixed in 2.0.2, 1.1.12, 3.0.1, 4.0.1
  • CVE-2017-18077 High 27 Jan 2018 nodejs-brace-expansion: Regular expression denial of service Fixed in 1.1.7
  • NSWG-ECO-338 Medium No date ReDoS Fixed in 1.1.7

Seal Security (npm)

Seal Security ships a patched build of this package. Its fixed versions:

  • CVE-2025-5889: 1.1.11-sp2
  • CVE-2026-102276: 1.1.11-sp2, 1.1.12-sp3, 1.1.13-sp3, 1.1.6-sp3, 1.1.8-sp999, 2.0.1-sp2, 2.0.2-sp3, 2.0.3-sp3, 2.1.1-sp3, 5.0.3-sp2, 5.0.4-sp2, 5.0.5-sp4, 5.0.6-sp3, 5.0.7-sp2
  • CVE-2026-102277: 1.1.11-sp2, 1.1.12-sp3, 1.1.13-sp3, 1.1.6-sp3, 1.1.8-sp999, 2.0.1-sp2, 2.0.2-sp3, 2.0.3-sp3, 2.1.1-sp3, 5.0.3-sp2, 5.0.4-sp2, 5.0.5-sp4, 5.0.6-sp3, 5.0.7-sp2
  • CVE-2026-102278: 1.1.11-sp2, 1.1.12-sp3, 1.1.13-sp3, 1.1.6-sp3, 1.1.8-sp999, 2.0.1-sp2, 2.0.2-sp3, 2.0.3-sp3, 2.1.1-sp3, 5.0.3-sp2, 5.0.4-sp2, 5.0.5-sp4, 5.0.6-sp3, 5.0.7-sp2
  • CVE-2026-13149: 1.1.11-sp2, 1.1.12-sp2, 1.1.6-sp3, 1.1.8-sp2, 2.0.1-sp2, 2.0.2-sp2, 5.0.3-sp2, 5.0.5-sp2
  • CVE-2026-14257: 1.1.11-sp2, 1.1.12-sp2, 1.1.6-sp3, 1.1.8-sp2, 2.0.1-sp2, 2.0.2-sp2, 5.0.3-sp2, 5.0.5-sp2, 5.0.6-sp2
  • CVE-2026-33750: 1.1.6-sp2
  • CVE-2026-69152: 1.1.11-sp2, 1.1.12-sp2, 1.1.13-sp2, 1.1.6-sp3, 1.1.8-sp999, 2.0.1-sp2, 2.0.2-sp2, 2.0.3-sp2, 2.1.1-sp2, 5.0.3-sp2, 5.0.4-sp2, 5.0.5-sp3, 5.0.6-sp2

README

The publisher’s own README, as collected from the registry.

brace-expansion

Brace expansion, as known from sh/bash, in JavaScript.

CI downloads

Example

import { expand } from 'brace-expansion'

expand('file-{a,b,c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']

expand('-v{,,}')
// => ['-v', '-v', '-v']

expand('file{0..2}.jpg')
// => ['file0.jpg', 'file1.jpg', 'file2.jpg']

expand('file-{a..c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']

expand('file{2..0}.jpg')
// => ['file2.jpg', 'file1.jpg', 'file0.jpg']

expand('file{0..4..2}.jpg')
// => ['file0.jpg', 'file2.jpg', 'file4.jpg']

expand('file-{a..e..2}.jpg')
// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']

expand('file{00..10..5}.jpg')
// => ['file00.jpg', 'file05.jpg', 'file10.jpg']

expand('{{A..C},{a..c}}')
// => ['A', 'B', 'C', 'a', 'b', 'c']

expand('ppp{,config,oe{,conf}}')
// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']

API

import { expand } from 'brace-expansion'

The same function is also available as a default import, import expand from 'brace-expansion'.

const expanded = expand(str, [options])

Return an array of all possible and valid expansions of str. If none are found, [str] is returned.

The options object can provide a max value to cap the number of expansions allowed. This is limited to 100_000 by default, to prevent DoS attacks.

const expansions = expand('{1..100}'.repeat(5), {
  max: 100,
})
// expansions.length will be 100, not 100^5

The options object can also provide a maxLength value to cap the total number of characters across all expansions. This is limited to 4_000_000 by default, to prevent memory exhaustion from inputs whose result count stays under max while each result grows very long.

const expansions = expand('{a,b}'.repeat(1500), {
  maxLength: 10_000,
})

Three more options bound the work a call does rather than its output. Past each of them, the part of str that is left comes back literally instead of being expanded, and nothing is thrown.

  • maxDepth caps how deeply nested brace sets are followed. This is limited to 1_000 by default, to prevent stack exhaustion.
  • maxRewrites caps how many times Bash's {a},b} quirk, where a brace set followed by a comma set still expands, may restart the parse. This is limited to 1_000 by default.
  • maxSteps caps the total work: each character the parser scans, each result it builds and each sequence value it generates is one step, a zero-padded value is one per character, and each string it starts expanding, str itself or a member of a brace set, costs 16 more. This is limited to 20_000_000 by default, which takes well under a second to spend, to prevent CPU exhaustion. Ordinary patterns need a few hundred steps, and nesting to the full maxDepth about 4 million. If you raise max or maxLength, raise this too.

When maxSteps runs out partway, the top-level brace sets before the point where it ran out stay expanded, so the result can be partly expanded rather than [str]:

expand('{a,b}' + '{'.repeat(10_000) + 'c,d' + '}'.repeat(10_000))
// ['a{{{...c,d...}}}', 'b{{{...c,d...}}}']

Pass Infinity to lift any of these bounds.

Valid expansions are:

;/^(.*,)+(.+)?$/
// {a,b,...}

A comma separated list of options, like {a,b} or {a,{b,c}} or {,a,}.

;/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}

A numeric sequence from x to y inclusive, with optional increment. If x or y start with a leading 0, all the numbers will be padded to have equal length. Negative numbers and backwards iteration work too.

;/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}

An alphabetic sequence from x to y inclusive, with optional increment. x and y must be exactly one character, and if given, incr must be a number.

For compatibility reasons, the string ${ is not eligible for brace expansion.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm brace-expansion

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229