Intel

AIKIDO-2026-622096

cron-parser is vulnerable to Denial of Service (DoS)

GHSA-cxfv-c5wv-5vc9Published Oct 19, 2026
October 19, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The cron-parser hashed-step field expansion (H/<step> and H(min-max)/<step>) in CronExpressionParser.ts generates every value in a field's range before the per field value cap is applied. A cron expression that repeats hashed-step tokens causes unbounded string replacement and array growth during parsing, exhausting the process heap and crashing with a fatal out-of-memory error. This incompletely-fixed a prior cap that only guarded the plain comma-list expansion path, leaving the hashed-step path unbounded. The fix moves the field-value cap check inside the hashed-step expansion loop and also bounds the overall expression length before parsing.

How do I fix this?

Upgrade the cron-parser library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Versions

0.0.1 - 5.10.1

Fixed in 5.10.2

Background info

cron-parser is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 5.10.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea