CVE-2026-26004: Oauth State Presence Routing Bypass

Routing OAuth flows based solely on the presence of parameters like 'state' or 'code' in the request allows attackers to bypass CSRF protections. In OAuth callbacks, it is crucial to securely extract the parameter values (e.g., using `getlist` to prevent HTTP parameter pollution) and perform a cryptographic or strict equality comparison of the received 'stat

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-26004-oauth-state-presence-routing-bypass --engine opengrep

Description

Routing OAuth flows based solely on the presence of parameters like 'state' or 'code' in the request allows attackers to bypass CSRF protections. In OAuth callbacks, it is crucial to securely extract the parameter values (e.g., using `getlist` to prevent HTTP parameter pollution) and perform a cryptographic or strict equality comparison of the received 'stat