CVE-2022-2596 Inefficient Regular Expression Complexity in node-fetch/node-fetch
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.
| Package | Affected | Fixed in |
|---|---|---|
node-fetch npm | From 3.0.0 | 3.2.10 |
node-fetch npm | From 3.0.0 | 3.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.
Other vulnerabilities in node-fetch/node-fetch
Sources
Also known as GHSA-vp56-6g26-6827, UBUNTU-CVE-2022-2596.