MediumGHSA-w9mr-4mfr-499fCVE-2017-20162

Vercel ms Inefficient Regular Expression Complexity vulnerability

Published 5 Jan 2023 · Updated 4 Nov 2025

Affected package

msnpm
Affected
<2.0.0
Fixed in
2.0.0
Update to the fixed version for your release line, for example:npm install ms@2.0.0

Details

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.