---
title: "GHSA-v6h2-p8h4-qcjw: brace-expansion Regular Expression Denial of Service vulnerability"
description: "Low severity. brace-expansion Regular Expression Denial of Service vulnerability. Affects brace-expansion; fixed in 4.0.1."
url: https://inlinr.com/advisories/GHSA-v6h2-p8h4-qcjw
lang: en
---

[Packages](https://inlinr.com/packages) / [brace-expansion](https://inlinr.com/packages/brace-expansion) / [Security](https://inlinr.com/packages/brace-expansion/security)

Low Vulnerability GHSA-v6h2-p8h4-qcjw CVE-2025-5889 Published 9 Jun 2025

# brace-expansion Regular Expression Denial of Service vulnerability

Your version 

Affected releases · [brace-expansion](https://inlinr.com/packages/brace-expansion)

- 4.x 4.0.0 Fixed in 4.0.1
- 3.x 3.0.0 Fixed in 3.0.1
- 2.x 2.0.0 – 2.0.1 Fixed in 2.0.2
- 1.x 1.0.0 – 1.1.11 Fixed in 1.1.12

On 4.x, the newest line:

```
npm install brace-expansion@4.0.1
```

Every release on a timeline

5.x 

1. Not affected

5.0.2 – 5.0.13  
12 releases, latest

4.x 

1. Affected

4.0.0  
1 release
2. Fixed

4.0.1  
1 release

3.x 

1. Affected

3.0.0  
1 release
2. Fixed

3.0.1 – 3.0.10  
10 releases

2.x 

1. Affected

2.0.0 – 2.0.1  
2 releases
2. Fixed

2.0.2 – 2.1.8  
11 releases

1.x 

1. Affected

1.0.0 – 1.1.11  
14 releases
2. Fixed

1.1.12 – 1.1.22  
11 releases

64 stable releases of brace-expansion, oldest to newest, one row per major.

## What happens

A vulnerability was found in juliangruber brace-expansion up to 1.1.11/2.0.1/3.0.0/4.0.0\. It has been rated as problematic. Affected by this issue is the function expand of the file index.js. The manipulation leads to inefficient regular expression complexity. The attack may be launched remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. Upgrading to version 1.1.12, 2.0.2, 3.0.1 and 4.0.1 is able to address this issue. The name of the patch is `a5b98a4f30d7813266b221435e1eaaf25a1b0ac5`. It is recommended to upgrade the affected component.

## How it is exploited

Exploitable over the network, with a low-privilege account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: low

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-5889 "https://nvd.nist.gov/vuln/detail/CVE-2025-5889")  
nvd.nist.gov/vuln/detail/CVE-2025-5889
- [Pull request](https://github.com/juliangruber/brace-expansion/pull/65/commits/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5 "https://github.com/juliangruber/brace-expansion/pull/65/commits/a5b98a4f30d7813266b221435e1eaaf25a1b0ac5")  
#65
- [Fix commit](https://github.com/juliangruber/brace-expansion/commit/0b6a9781e18e9d2769bb2931f4856d1360243ed2 "https://github.com/juliangruber/brace-expansion/commit/0b6a9781e18e9d2769bb2931f4856d1360243ed2")  
0b6a978
- [Fix commit](https://github.com/juliangruber/brace-expansion/commit/15f9b3c75ebf5988198241fecaebdc45eff28a9f "https://github.com/juliangruber/brace-expansion/commit/15f9b3c75ebf5988198241fecaebdc45eff28a9f")  
15f9b3c
- [Fix commit](https://github.com/juliangruber/brace-expansion/commit/36603d5f3599a37af9e85eda30acd7d28599c36e "https://github.com/juliangruber/brace-expansion/commit/36603d5f3599a37af9e85eda30acd7d28599c36e")  
36603d5
- [Fix commit](https://github.com/juliangruber/brace-expansion/commit/c3c73c8b088defc70851843be88ccc3af08e7217 "https://github.com/juliangruber/brace-expansion/commit/c3c73c8b088defc70851843be88ccc3af08e7217")  
c3c73c8
- [Reference](https://gist.github.com/mmmsssttt404/37a40ce7d6e5ca604858fe30814d9466 "https://gist.github.com/mmmsssttt404/37a40ce7d6e5ca604858fe30814d9466")  
gist.github.com/mmmsssttt404/37a40ce7d6e5ca6048…
- [Package](https://github.com/juliangruber/brace-expansion "https://github.com/juliangruber/brace-expansion")  
github.com/juliangruber/brace-expansion
- [Reference](https://vuldb.com/?ctiid.311660 "https://vuldb.com/?ctiid.311660")  
vuldb.com
- [Reference](https://vuldb.com/?id.311660 "https://vuldb.com/?id.311660")  
vuldb.com
- [Reference](https://vuldb.com/?submit.585717 "https://vuldb.com/?submit.585717")  
vuldb.com

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
