CVE-2021-23371: Denial of Service in chrono-node

chrono-node Updated 02 Oct 2025

Summary

06/05/2021
Yes i
High
7.5

CVE-2021-23371: Denial of service in chrono-node. Affects chrono-node versions < 2.2.4. Fixed in 2.2.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

chrono-node is an npm package that provides date and time manipulation functionalities. It is used to parse, format, and manipulate dates and times in JavaScript applications. The package is vulnerable to a denial of service (DoS) attack due to a hang when processing a date-like string with a large number of embedded spaces.

Vulnerability Detail

The vulnerability in chrono-node allows an attacker to cause a DoS condition by providing a specially crafted date-like string with numerous embedded spaces. When the package encounters such a string, it enters an infinite loop, causing the application to hang indefinitely. This can lead to resource exhaustion and disrupt the normal operation of the affected application. The vulnerability has a CVSS score of 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

2.2.4

This is the first release that contains the fix.

npm install chrono-node@2.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update the package to the fixed version to mitigate the risk of a DoS attack.

Conclusion

The chrono-node package is vulnerable to a DoS attack due to an infinite loop issue when processing date-like strings with embedded spaces. To mitigate this vulnerability, it is crucial to update the package to version 2.2.4 or later. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for chrono-node →

Share this vulnerability

FAQ

chrono-node is an npm package used for date and time manipulation in JavaScript applications.

The vulnerability allows an attacker to cause a DoS condition, leading to resource exhaustion and disruption of the affected application.

You can fix the vulnerability by updating the chrono-node package to version 2.2.4 or later.

No, there is no known workaround for this vulnerability. Updating the package is the recommended solution.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

2.2.4

This is the first release that contains the fix.

npm install chrono-node@2.2.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback