LowGO-2022-0790BIT-oauth2-proxy-2021-21291CVE-2021-21291GHSA-4mf2-f3wh-gvf2
Subdomain checking of whitelisted domains could allow unintended redirects in oauth2-proxy in github.com/oauth2-proxy/oauth2-proxy
Published 21 Aug 2024 · Updated 3 Mar 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 packages
- Affected
- All versions
- Fixed in
- No fix released
- Affected
- <7.0.0
- Fixed in
- 7.0.0
Update to the fixed version for your release line, for example:
go get github.com/oauth2-proxy/oauth2-proxy/v7@v7.0.0Details
Subdomain checking of whitelisted domains could allow unintended redirects in oauth2-proxy in github.com/oauth2-proxy/oauth2-proxy
Is GO-2022-0790 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
- Advisorygithub.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-4mf2-f3wh-gvf2
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-21291
- Fixgithub.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725
- Linkgithub.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.0.0
- Linkpkg.go.dev/github.com/oauth2-proxy/oauth2-proxy/v7
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.