Skip to content
Critical 9.1

Vulnerability in github.com/oauth2-proxy/oauth2-proxy/v7

CVE-2026-40575 First seen on SecPulse

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.

What is the problem

A vulnerability (CWE-290) exists in github.com/oauth2-proxy/oauth2-proxy/v7.

Affected scope

Check the vendor advisory for the affected versions of github.com/oauth2-proxy/oauth2-proxy/v7.

Severity

Severity: Critical (CVSS 9.1/10). Confidential information can be exposed externally.

How to fix

Update to 7.15.2.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

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. 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. 2
    Apply patchpatch
    Upgrade github.com/oauth2-proxy/oauth2-proxy/v7 to 7.15.2

    ステージング環境で 7.15.2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
gogithub.com/oauth2-proxy/oauth2-proxy/v7
< 7.15.2→ 7.15.2
Bitnamioauth2-proxy
≥ 7.15.2, < 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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details