Vercel ms Inefficient Regular Expression Complexity vulnerability
Published 5 Jan 2023 · Updated 4 Nov 2025
Affected package
- Affected
- <2.0.0
- Fixed in
- 2.0.0
npm install ms@2.0.0Details
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 caae2988ba2a37765d055c4eee63d383320ee662. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217451.
Is GHSA-w9mr-4mfr-499f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected ms, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2017-20162
- Linkgithub.com/vercel/ms/pull/89
- Linkgithub.com/vercel/ms/commit/caae2988ba2a37765d055c4eee63d383320ee662
- Packagegithub.com/vercel/ms
- Linkgithub.com/vercel/ms/releases/tag/2.0.0
- Linksecurity.netapp.com/advisory/ntap-20241108-0002
- Linkvuldb.com/?ctiid.217451
- Linkvuldb.com/?id.217451
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.