Authorization Flaw in oauth2-proxy
Summary
Vulnerability in oauth2-proxy (CVE-2026-40574). Confidential information can be exposed externally. Exploitable via email_domain. Mitigation: upgrade to 7.15.2 or later.
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-40574 has been found in oauth2-proxy.
Attackers can target a specific entry point like email_domain over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade oauth2-proxy to 7.15.2 or later.
If unsure, ask your IT team or search "oauth2-proxy CVE-2026-40574" on the vendor's site.
CVE-2026-40574 (oauth2-proxy) — CWE-863
Attack vector: remote (network-reachable) / no user interaction
Attack surface: email_domain / company.com
Patched: 7.15.2 — apply immediately
Workaround: The most effective workaround is to ensure the configured identity provider cannot emit malformed or attacker-controlled email claim values.
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.
Incorrect authorization (CWE-863) exists in oauth2-proxy. Attackers reach the vulnerable code path via email_domain.
Check the vendor advisory for the affected versions of oauth2-proxy. Attack surface: email_domain / company.com.
Severity: ?. Confidential information can be exposed externally.
Update to 7.15.2.
Workaround: The most effective workaround is to ensure the configured identity provider cannot emit malformed or attacker-controlled email claim values.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'oauth2-proxy' . 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 'oauth2-proxy' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
oauth2-proxyを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
The most effective workaround is to ensure the configured identity provider cannot emit malformed or attacker-controlled email claim values.パッチが適用されるまでの応急処置として、The most effective workaround is to ensure the configured identity provider cannot emit malformed or attacker-controlled email claim values. を実施。回避策の副作用 (機能低下) を確認した上で。
-
3
Apply patchpatch
Upgrade oauth2-proxy to 7.15.2ステージング環境で 7.15.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Bitnamioauth2-proxy |
< 7.15.2→ 7.15.2 |
7.15.2 |
| Gogithub.com/oauth2-proxy/oauth2-proxy |
All versions→ Not listed |
Not listed |
| Gogithub.com/oauth2-proxy/oauth2-proxy/v7 |
< 7.15.2→ 7.15.2 |
7.15.2 |
Original description The description as published by the source.
OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Prior to 7.15.2, an authorization bypass exists in OAuth2 Proxy as part of the email_domain enforcement option. An attacker may be able to authenticate with an email claim such as attacker@evil.com@company.com and satisfy an allowed domain check for company.com, even though the claim is not a valid email address. The issue ONLY affects deployments that rely on email_domain restrictions and accept email claim values from identity providers or claim mappings that do not strictly enforce normal email syntax. This vulnerability is fixed in 7.15.2.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com