CVE-2022-2596 Inefficient Regular Expression Complexity in node-fetch/node-fetch

Medium 5.9 Published Updated

Attackers can cause denial of service in applications using node-fetch by triggering inefficient regular expression complexity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2596?

CVE-2022-2596 is a medium-severity denial of service vulnerability in node-fetch/node-fetch, published on 1 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.

Weakness: CWE-1333

Which versions are affected by CVE-2022-2596?

2 open source packages ship an affected version, including node-fetch. It affects 1 product.

PackageAffectedFixed in
node-fetch npmFrom 3.0.03.2.10
node-fetch npmFrom 3.0.03.2.10

Products include Node-Fetch Project Node-Fetch.

How do I fix CVE-2022-2596?

Upgrade node-fetch to 3.2.10 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-2022-2596 being exploited?

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

Sources

Also known as GHSA-vp56-6g26-6827, UBUNTU-CVE-2022-2596.

Is CVE-2022-2596 in your software?

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

Check your SBOMs for free