cron-parser is vulnerable to Denial of Service (DoS)
53
CVE Score
Medium
Denial of Service (DoS)
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.
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.1
Fixed in 5.10.2cron-parser is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 5.10.1.
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.