Open Redirect in OAuth2 Proxy
Published 20 Dec 2021 · Updated 8 Jul 2026
Is your project on an affected github.com/oauth2-proxy/oauth2-proxy?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=5.1.1 <6.0.0
- Fixed in
- 6.0.0
go get github.com/oauth2-proxy/oauth2-proxy@v6.0.0Details
Impact
As users can provide a redirect address for the proxy to send the authenticated user to at the end of the authentication flow. This is expected to be the original URL that the user was trying to access. This redirect URL is checked within the proxy and validated before redirecting the user to prevent malicious actors providing redirects to potentially harmful sites.
Is GHSA-5m6c-jp6f-2vcv in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/oauth2-proxy/oauth2-proxy, and gives you the command that fixes it.
More advisories for github.com/oauth2-proxy/oauth2-proxy
- LowCVE-2026-41059OAuth2 Proxy has an Authentication Bypass via Fragment Confusion in skip_auth_routes and skip_auth_regex in github.com/oauth2-proxy/oauth2-proxy · 25 Jun 2026
- LowCVE-2026-40574OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims in github.com/oauth2-proxy/oauth2-proxy · 25 Jun 2026
- LowCVE-2026-34454OAuth2 Proxy's session cookies are not cleared when rendering sign-in page in github.com/oauth2-proxy/oauth2-proxy · 25 Jun 2026
- LowCVE-2026-40575OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing in github.com/oauth2-proxy/oauth2-proxy · 25 Jun 2026
- LowCVE-2026-34457OAuth2 Proxy's Health Check User-Agent Matching Bypasses Authentication in auth_request Mode in github.com/oauth2-proxy/oauth2-proxy · 25 Jun 2026
- CriticalCVE-2026-34457 OAuth2 Proxy's Health Check User-Agent Matching Bypasses Authentication in auth_request Mode · 14 Apr 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.