Back to Labs
Security Advisory

CVE-2021-23371

About

This affects the package chrono-node before 2.2.4. It hangs on a date-like string with lots of embedded spaces.

Rainforest analyst review

The chrono-node date-parsing package hangs when handed a date-like string containing many embedded spaces, a catastrophic-slowdown denial of service triggered by crafted input. Whether that matters at all depends on whether attacker-controlled strings can ever reach the parser.

This is a classic dependency-availability question. chrono-node is an npm library that frequently arrives transitively behind something else, and the DoS only bites where untrusted input flows into its parsing. If dates being parsed come only from trusted, well-formed sources, the practical risk is near zero; if a user-supplied field feeds it, a single malicious string can stall processing.

So our work is dependency inventory, including transitive dependencies, followed by tracing whether any user-controllable input reaches chrono-node's parser. That data-flow answer, not the 7.5, decides whether this is an exposure to fix urgently or a latent library defect to bump on the next update.

References

Related CVEs

No related CVEs.

Frequently asked questions

What is CVE-2021-23371?

This affects the package chrono-node before 2.2.4. It hangs on a date-like string with lots of embedded spaces.

How severe is CVE-2021-23371?

CVE-2021-23371 carries a CVSS 3.1 base score of 7.5, rated high. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 75 out of 100, in the high band.

How is CVE-2021-23371 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality None, integrity None and availability High.

Which products are affected by CVE-2021-23371?

Public advisories list the following as affected: chrono-node. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2021-23371?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email