Intel

AIKIDO-2026-140382

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

GHSA-r9w7-75q6-r884Published Oct 6, 2026
October 6, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

CronExpressionParser.parse() expands a cron field containing a repeated wildcard list token (*,*,*,...) into one array element per repetition, with no cap on field length. A crafted expression of a few hundred kilobytes allocates tens of millions of elements in one synchronous call, exhausting the Node.js heap and aborting the process. Any caller that parses a cron expression from an untrusted submitter, such as a user supplied schedule string, can trigger this crash. The fix caps field expansion at 256 values and rejects expressions that exceed it.

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

Fixed in 5.10.1

Background info

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

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