CVE-2021-23490 Regular Expression Denial of Service (ReDoS)
Attackers can cause denial of service in applications using the parse-link-header library by exploiting a regular expression vulnerability.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-23490?
CVE-2021-23490 is a high-severity denial of service vulnerability in parse-link-header, published on 24 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The package parse-link-header before 2.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the checkHeader function.
Weakness: CWE-1333
Which versions are affected by CVE-2021-23490?
2 open source packages ship an affected version, including parse-link-header. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
parse-link-header npm | All versions | 2.0.0 |
parse-link-header npm | All versions | 2.0.0 |
Products include Parse-Link-Header Project Parse-Link-Header.
How do I fix CVE-2021-23490?
Upgrade parse-link-header 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-2021-23490 being exploited?
There is no known exploitation of CVE-2021-23490 in the wild and no public exploit code.
Sources
Also known as GHSA-q674-xm3x-2926.