CVE-2026-41150: Infinite Loop Date Increment Dos

A while loop compares start and end dates/values, but both are incremented using `.add()` without an explicit bounding check or maximum iteration guard. This can lead to infinite loops (DoS) if user input forces the loop to continuously evaluate the increment condition. Introduce a maximum iteration limit combined with a throw, break, or return statement.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-41150-infinite-loop-date-increment-dos --engine opengrep

Description

A while loop compares start and end dates/values, but both are incremented using `.add()` without an explicit bounding check or maximum iteration guard. This can lead to infinite loops (DoS) if user input forces the loop to continuously evaluate the increment condition. Introduce a maximum iteration limit combined with a throw, break, or return statement.