---
title: "GHSA-w9mr-4mfr-499f: Vercel ms Inefficient Regular Expression Complexity vulnerability"
description: "Moderate severity. Vercel ms Inefficient Regular Expression Complexity vulnerability. Affects ms; fixed in 2.0.0."
url: https://inlinr.com/advisories/GHSA-w9mr-4mfr-499f
lang: en
---

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

Moderate Vulnerability GHSA-w9mr-4mfr-499f CVE-2017-20162 Published 5 Jan 2023

# Vercel ms Inefficient Regular Expression Complexity vulnerability

Your version 

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

- 1.x and older 0.1.0 – 1.0.0 No fix, no longer updated

1.x has no fix yet; the newest fixed line:

```
npm install ms@2.0.0
```

Every release on a timeline

2.x 

1. Not affected

2.0.0 – 2.1.3  
5 releases, latest

1.x 

1. Affected

1.0.0  
1 release

0.x 

1. Affected

0.1.0 – 0.7.3  
13 releases

19 stable releases of ms, oldest to newest, one row per major.

## What happens

A vulnerability, which was classified as problematic, has been found in vercel ms up to 1.x. This issue affects the function parse of the file index.js. The manipulation of the argument str leads to inefficient regular expression complexity. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The name of the patch is [caae298](https://github.com/vercel/ms/commit/caae2988ba2a37765d055c4eee63d383320ee662). It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217451.

## 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-2017-20162 "https://nvd.nist.gov/vuln/detail/CVE-2017-20162")  
nvd.nist.gov/vuln/detail/CVE-2017-20162
- [Pull request](https://github.com/vercel/ms/pull/89 "https://github.com/vercel/ms/pull/89")  
#89
- [Fix commit](https://github.com/vercel/ms/commit/caae2988ba2a37765d055c4eee63d383320ee662 "https://github.com/vercel/ms/commit/caae2988ba2a37765d055c4eee63d383320ee662")  
caae298
- [Package](https://github.com/vercel/ms "https://github.com/vercel/ms")  
github.com/vercel/ms
- [Reference](https://github.com/vercel/ms/releases/tag/2.0.0 "https://github.com/vercel/ms/releases/tag/2.0.0")  
github.com/vercel/ms/releases/tag/2.0.0
- [Reference](https://security.netapp.com/advisory/ntap-20241108-0002 "https://security.netapp.com/advisory/ntap-20241108-0002")  
security.netapp.com/advisory/ntap-20241108-0002
- [Reference](https://vuldb.com/?ctiid.217451 "https://vuldb.com/?ctiid.217451")  
vuldb.com
- [Reference](https://vuldb.com/?id.217451 "https://vuldb.com/?id.217451")  
vuldb.com
