---
title: "GHSA-w8qv-6jwh-64r5: Regular Expression Denial of Service in browserslist"
description: "Moderate severity. Regular Expression Denial of Service in browserslist. Affects browserslist; fixed in 4.16.5."
url: https://inlinr.com/advisories/GHSA-w8qv-6jwh-64r5
lang: en
---

[Packages](https://inlinr.com/packages) / [browserslist](https://inlinr.com/packages/browserslist) / [Security](https://inlinr.com/packages/browserslist/security)

Moderate Vulnerability GHSA-w8qv-6jwh-64r5 CVE-2021-23364 Published 24 May 2021

# Regular Expression Denial of Service in browserslist

Your version 

Affected releases · [browserslist](https://inlinr.com/packages/browserslist)

- 4.x 4.0.0 – 4.16.4 Fixed in 4.16.5

On 4.x, the newest line:

```
npm install browserslist@4.16.5
```

Every release on a timeline

1. Not affected

0.1.0 – 3.2.8  
81 releases
2. Affected

4.0.0 – 4.16.4  
68 releases
3. Fixed

4.16.5 – 4.29.6  
75 releases, latest

224 stable releases of browserslist, oldest to newest.

## What happens

The package browserslist from 4.0.0 and before 4.16.5 are vulnerable to Regular Expression Denial of Service (ReDoS) during parsing of queries.

## How it is exploited

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

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

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-23364 "https://nvd.nist.gov/vuln/detail/CVE-2021-23364")  
nvd.nist.gov/vuln/detail/CVE-2021-23364
- [Pull request](https://github.com/browserslist/browserslist/pull/593 "https://github.com/browserslist/browserslist/pull/593")  
#593
- [Fix commit](https://github.com/browserslist/browserslist/commit/c091916910dfe0b5fd61caad96083c6709b02d98 "https://github.com/browserslist/browserslist/commit/c091916910dfe0b5fd61caad96083c6709b02d98")  
c091916
- [Reference](https://github.com/browserslist/browserslist/blob/e82f32d1d4100d6bc79ea0b6b6a2d281a561e33c/index.js%23L472-L474 "https://github.com/browserslist/browserslist/blob/e82f32d1d4100d6bc79ea0b6b6a2d281a561e33c/index.js%23L472-L474")  
github.com/browserslist/browserslist/blob/e82f3…
- [Reference](https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1277182 "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1277182")  
snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1277182
- [Reference](https://snyk.io/vuln/SNYK-JS-BROWSERSLIST-1090194 "https://snyk.io/vuln/SNYK-JS-BROWSERSLIST-1090194")  
snyk.io/vuln/SNYK-JS-BROWSERSLIST-1090194

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.
