CVE-2020-26289 Regular expression Denial of Service in date-and-time
Attackers can cause a denial of service in the date-and-time npm library by exploiting a regular expression parsing 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-2020-26289?
CVE-2020-26289 is a high-severity denial of service vulnerability in knowledgecode date-and-time, published on 28 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
date-and-time is an npm package for manipulating date and time. In date-and-time before version 0.14.2, there a regular expression involved in parsing which can be exploited to to cause a denial of service. This is fixed in version 0.14.2.
Weakness: CWE-400
Which versions are affected by CVE-2020-26289?
2 open source packages ship an affected version, including date-and-time. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
date-and-time npm | All versions | 0.14.2 |
date-and-time npm | All versions | 0.14.2 |
Products include Date-and-Time Project Date-and-Time.
How do I fix CVE-2020-26289?
Upgrade date-and-time to 0.14.2 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-2020-26289 being exploited?
There is no known exploitation of CVE-2020-26289 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1792596188, GHSA-r92x-f52r-x54g.