CVE-2021-23371 Regular Expression Denial of Service (ReDoS)
An attacker can cause a denial of service by providing a specially crafted date string with excessive spaces to the chrono-node library.
- 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-23371?
CVE-2021-23371 is a high-severity denial of service vulnerability in chrono-node, published on 12 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package chrono-node before 2.2.4. It hangs on a date-like string with lots of embedded spaces.
Which versions are affected by CVE-2021-23371?
2 open source packages ship an affected version, including chrono-node. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chrono-node npm | All versions | 2.2.4 |
chrono-node npm | All versions | 2.2.4 |
Products include Chrono-Node Project Chrono-Node.
How do I fix CVE-2021-23371?
Upgrade chrono-node to 2.2.4 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-23371 being exploited?
There is no known exploitation of CVE-2021-23371 in the wild and no public exploit code.
Sources
Also known as GHSA-hpmr-g4pq-jhgp, SNYK-JS-CHRONONODE-1083228.