What’s Vulnerable › Vulnerabilities
CVE-2020-26289: Regular expression Denial of Service in date-and-time
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-12-28 · updated 2026-06-17
- Weakness: CWE-400
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.
Affected products
- knowledgecode date-and-time: before 0.14.2 — fixed in 0.14.2
How to fix
Upgrade to a fixed version: knowledgecode date-and-time 0.14.2. Check the vendor advisory for mitigations.
References
- https://github.com/knowledgecode/date-and-time/commit/9e4b501eacddccc8b1f559fb414f48472ee17c2a
- https://github.com/knowledgecode/date-and-time/security/advisories/GHSA-r92x-f52r-x54g
- https://www.npmjs.com/package/date-and-time
- https://github.com/knowledgecode/date-and-time/commit/9e4b501eacddccc8b1f559fb414f48472ee17c2a
- https://github.com/knowledgecode/date-and-time/security/advisories/GHSA-r92x-f52r-x54g
- https://www.npmjs.com/package/date-and-time
Get alerted when CVE-2020-26289 or the next vulnerability affects your stack