CVE-2026-34454: OAuth2 Proxy's session cookies are not cleared when rendering sign-in page
Impact A regression introduced in v7.11.0 is preventing OAuth2 Proxy from clearing the session cookie when rendering the sign-in page. This only impacts deployments that rely on the sign-in page as part of their logout flow. In those setups, a user may be shown the sign-in page while the existing session cookie remains valid, so the browser session is not actually logged out.
Published Apr 14, 2026 · Updated Apr 15, 2026
Affected packages
github.com/oauth2-proxy/oauth2-proxy/v7
- Ecosystem
- Go
- Affected
- >= 7.11.0, < 7.15.2
- Fixed in
- 7.15.2
- Check
go list -m github.com/oauth2-proxy/oauth2-proxy/v7
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
A regression introduced in v7.11.0 is preventing OAuth2 Proxy from clearing the session cookie when rendering the sign-in page.
This only impacts deployments that rely on the sign-in page as part of their logout flow. In those setups, a user may be shown the sign-in page while the existing session cookie remains valid, so the browser session is not actually logged out. On shared workstations be it browsers or devices, a subsequent user could continue to use the previous user's authenticated session.
Deployments that use a dedicated logout/sign-out endpoint to terminate sessions are not affected.
Patches
This issue is fixed in v7.15.2.
Workarounds
Do not rely on the sign-in page to clear an existing session. Instead:
- Use the dedicated logout/sign-out endpoint of OAuth2 Proxy
- Ensure your application logout flow explicitly clears the OAuth2 Proxy session cookie before redirecting users to the sign-in page
- If needed, clear the session cookie at the reverse proxy or application layer as a temporary mitigation
Credited to bella-WI, cschrewing-WI.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-40574
OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims
medium6.8Apr 15, 2026CVE-2026-40575
OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing
critical9.1Apr 15, 2026CVE-2026-41059
OAuth2 Proxy has an Authentication Bypass via Fragment Confusion in skip_auth_routes and skip_auth_regex
high8.2Apr 15, 2026CVE-2026-34457
OAuth2 Proxy's Health Check User-Agent Matching Bypasses Authentication in auth_request Mode
critical9.1No fixApr 14, 2026CVE-2025-64484
OAuth2-Proxy is vulnerable to header smuggling via underscore leading to potential privilege escalation
high8.5Nov 12, 2025CVE-2021-21411
OAuth2-Proxy's `--gitlab-group` GitLab Group Authorization config flag stopped working in v7.0.0
medium5.5Jul 30, 2025
