---
title: "GHSA-832h-xg76-4gv6: ReDoS in brace-expansion"
description: "High severity. ReDoS in brace-expansion. Affects brace-expansion; fixed in 1.1.7."
url: https://inlinr.com/advisories/GHSA-832h-xg76-4gv6
lang: en
---

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

High Vulnerability GHSA-832h-xg76-4gv6 CVE-2017-18077 Published 29 Jan 2018

# ReDoS in brace-expansion

Your version 

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

- 1.x 1.0.0 – 1.1.6 Fixed in 1.1.7
- 0.0.x 0.0.0 No fix on this line yet

On 1.x, the newest line:

```
npm install brace-expansion@1.1.7
```

Every release on a timeline

5.x 

1. Not affected

5.0.2 – 5.0.13  
12 releases, latest

1.x 

1. Affected

1.0.0 – 1.1.6  
9 releases
2. Fixed

1.1.7 – 1.1.22  
16 releases

0.x 

1. Affected

0.0.0  
1 release

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

## What happens

Affected versions of `brace-expansion` are vulnerable to a regular expression denial of service condition.

Proof of Concept

```
var expand = require('brace-expansion');
expand('{,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n}');
```

Recommendation

Update to version 1.1.7 or later.

## How it is exploited

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

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-18077 "https://nvd.nist.gov/vuln/detail/CVE-2017-18077")  
nvd.nist.gov/vuln/detail/CVE-2017-18077
- [Issue](https://github.com/juliangruber/brace-expansion/issues/33 "https://github.com/juliangruber/brace-expansion/issues/33")  
#33
- [Pull request](https://github.com/juliangruber/brace-expansion/pull/35 "https://github.com/juliangruber/brace-expansion/pull/35")  
#35
- [Pull request](https://github.com/juliangruber/brace-expansion/pull/35/commits/b13381281cead487cbdbfd6a69fb097ea5e456c3 "https://github.com/juliangruber/brace-expansion/pull/35/commits/b13381281cead487cbdbfd6a69fb097ea5e456c3")  
#35
- [Reference](https://bugs.debian.org/862712 "https://bugs.debian.org/862712")  
bugs.debian.org/862712
- [GitHub advisory](https://github.com/advisories/GHSA-832h-xg76-4gv6 "https://github.com/advisories/GHSA-832h-xg76-4gv6")  
github.com/advisories/GHSA-832h-xg76-4gv6
- [Package](https://github.com/juliangruber/brace-expansion "https://github.com/juliangruber/brace-expansion")  
github.com/juliangruber/brace-expansion
- [Reference](https://www.npmjs.com/advisories/338 "https://www.npmjs.com/advisories/338")  
npmjs.com/advisories/338

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.
