Description
Cron-parser through 5.10.0 contains an unbounded memory allocation vulnerability in CronExpressionParser.parse() that allows unauthenticated attackers to exhaust memory by supplying oversized cron fields. Attackers can submit a roughly 1.6 MB expression of repeated wildcard tokens that expand into huge arrays, exhausting the V8 heap and crashing the Node.js process.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
harrisiirak cron-parser
Default version status: unaffected
0 to ≤ 5.10.0affected
pkg:npm/cron-parserReferences
- https://github.com/harrisiirak/cron-parser/security/advisories/GHSA-r9w7-75q6-r884 ↗
- https://github.com/harrisiirak/cron-parser/pull/450 ↗
- https://github.com/harrisiirak/cron-parser/commit/95bac55c58b88d1b40b25ce637d983fb59645a14 ↗
- https://github.com/harrisiirak/cron-parser/releases/tag/v5.10.1 ↗
- https://github.com/harrisiirak/cron-parser/blob/v5.10.0/src/CronExpressionParser.ts#L399-L428 ↗
- https://www.vulncheck.com/advisories/cron-parser-through-5.10.0-unbounded-memory-allocation-via-cronexpressionparser-parse ↗