cron-parser is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
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.
Upgrade the cron-parser library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 5.10.0
Fixed in 5.10.1cron-parser is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 5.10.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.