Vulnerability in github.com/oauth2-proxy/oauth2-proxy/v7
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-40575 has been found in github.com/oauth2-proxy/oauth2-proxy/v7.
Confidential information can be exposed externally. CVSS score: 9.1/10.
What to do: upgrade github.com/oauth2-proxy/oauth2-proxy/v7 to 7.15.2 or later.
If unsure, ask your IT team or search "github.com/oauth2-proxy/oauth2-proxy/v7 CVE-2026-40575" on the vendor's site.
CVE-2026-40575 (github.com/oauth2-proxy/oauth2-proxy/v7) — CWE-290 / CVSS v3 9.1
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Patched: 7.15.2 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-290) exists in github.com/oauth2-proxy/oauth2-proxy/v7.
Check the vendor advisory for the affected versions of github.com/oauth2-proxy/oauth2-proxy/v7.
Severity: Critical (CVSS 9.1/10). Confidential information can be exposed externally.
Update to 7.15.2.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'github.com/oauth2-proxy/oauth2-proxy/v7' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'github.com/oauth2-proxy/oauth2-proxy/v7' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/oauth2-proxy/oauth2-proxy/v7を grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade github.com/oauth2-proxy/oauth2-proxy/v7 to 7.15.2ステージング環境で 7.15.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| gogithub.com/oauth2-proxy/oauth2-proxy/v7 |
< 7.15.2→ 7.15.2 |
7.15.2 |
| Bitnamioauth2-proxy |
≥ 7.15.2, < 7.15.5→ 7.15.5 |
7.15.5 |
Original description The description as published by the source.
OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 may trust a client-supplied X-Forwarded-Uri header when --reverse-proxy is enabled and --skip-auth-regex or --skip-auth-route is configured. An attacker can spoof this header so OAuth2 Proxy evaluates authentication and skip-auth rules against a different path than the one actually sent to the upstream application. This can result in an unauthenticated remote attacker bypassing authentication and accessing protected routes without a valid session. Impacted users are deployments that run oauth2-proxy with --reverse-proxy enabled and configure at least one --skip-auth-regex or --skip-auth-route rule. This issue is patched in v7.15.2. Some workarounds are available for those who cannot upgrade immediately. Strip any client-provided X-Forwarded-Uri header at the reverse proxy or load balancer level; explicitly overwrite X-Forwarded-Uri with the actual request URI before forwarding requests to OAuth2 Proxy; restrict direct client access to OAuth2 Proxy so it can only be reached through a trusted reverse proxy; and/or remove or narrow --skip-auth-regex / --skip-auth-route rules where possible. For nginx-based deployments, ensure X-Forwarded-Uri is set by nginx and not passed through from the client.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory access.redhat.com
- advisory nvd.nist.gov
- advisory github.com
- report bugzilla.redhat.com
- web security.access.redhat.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web vulncheck.com