CVE-2026-59806: Starlette Unvalidated Redirect Response

A function parameter is passed directly to `RedirectResponse` without explicit safe-listing or encoding. If this parameter is user-controllable, it causes an Open Redirect and potentially Client-Side Server-Side Request Forgery (SSRF). To fix, validate the URL against a strict allow-list, use safe proxies for retrieving resources, or avoid redirecting unvali

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-59806-starlette-unvalidated-redirect-response --engine opengrep

Description

A function parameter is passed directly to `RedirectResponse` without explicit safe-listing or encoding. If this parameter is user-controllable, it causes an Open Redirect and potentially Client-Side Server-Side Request Forgery (SSRF). To fix, validate the URL against a strict allow-list, use safe proxies for retrieving resources, or avoid redirecting unvali