You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OAuth2 filter: csrf token validation failed when multiple requests access a route with OAuth2 filter simultaneously #41902
Title: csrf token validation failed when multiple requests access a route with OAuth2 filter simultaneously
Description:
When multiple concurrent requests hit a route protected by the OAuth2 filter, only the last request completes successfully. The other requests fail with error "OAuth flow failed", and envoy log reports that “csrf token validation failed” or "PKCE verification failed: Code mismatch".
Repro steps:
Open multiple browser tabs pointing to a URL that requires OAuth2 filter authentication.
In the first tab, log in using valid user credential.
After successful login, the last tab is redirected correctly to the target URL, while the others display "OAuth flow failed".
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Activity
zhaohuabing commentedon Nov 8, 2025
/assign
github-actions commentedon Dec 8, 2025
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.