CVE-2026-52794: Sentry Oauth State Validation Bypass

Detected a potential OAuth state validation bypass. The application advances the OAuth flow by checking simply for the presence of 'code', 'error', or 'state' parameters in the request, rather than verifying that an active session's state matches the incoming 'state' parameter. This can expose the OAuth integration to Cross-Site Request Forgery (CSRF) or ses

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-52794-sentry-oauth-state-validation-bypass --engine opengrep

Description

Detected a potential OAuth state validation bypass. The application advances the OAuth flow by checking simply for the presence of 'code', 'error', or 'state' parameters in the request, rather than verifying that an active session's state matches the incoming 'state' parameter. This can expose the OAuth integration to Cross-Site Request Forgery (CSRF) or ses