CVE-2026-59937: Excessive Iteration Lazy Cache

Detected a lazy cache initialization using an inline loop that may be vulnerable to O(N*M) algorithmic complexity DoS if called repeatedly in an outer loop. Validate that the inner iteration over `$METHOD` is not an expensive operation, or that the resulting `$CACHE` is reused properly across all necessary invocations to avoid excessive continuous re-evaluat

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-59937-excessive-iteration-lazy-cache --engine opengrep

Description

Detected a lazy cache initialization using an inline loop that may be vulnerable to O(N*M) algorithmic complexity DoS if called repeatedly in an outer loop. Validate that the inner iteration over `$METHOD` is not an expensive operation, or that the resulting `$CACHE` is reused properly across all necessary invocations to avoid excessive continuous re-evaluat