CVE-2017-20162 vercel ms index.js parse redos

Medium 4.3 Published Updated

Remote attackers can cause denial of service in the vercel ms library via inefficient regular expression complexity in the parse function.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2017-20162?

CVE-2017-20162 is a medium-severity denial of service vulnerability in vercel ms, published on 5 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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 patch is named caae2988ba2a37765d055c4eee63d383320ee662. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217451.

Weakness: CWE-1333

Which versions are affected by CVE-2017-20162?

2 open source packages ship an affected version, including ms. It affects 1 product.

PackageAffectedFixed in
ms npmAll versions2.0.0
ms npmAll versions2.0.0

Products include Vercel Ms.

How do I fix CVE-2017-20162?

Upgrade ms to 2.0.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2017-20162 being exploited?

There is no known exploitation of CVE-2017-20162 in the wild and no public exploit code.

Sources

Also known as AZL-43849, AZL-44002, AZL-45126, AZL-45201, CLSA-2026-1773360972, CLSA-2026-1776991063 and 6 more.

Is CVE-2017-20162 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free