Catégories
CVE-2026-40575 critical CVSS 9.1

Vulnérabilité dans github.com/oauth2-proxy/oauth2-proxy/v7 (CVE-2026-40575)

Résumé

Vulnérabilité dans github.com/oauth2-proxy/oauth2-proxy/v7 (CVE-2026-40575). Des informations confidentielles peuvent être exposées. Atténuation : mise à jour vers 7.15.2 ou plus.

Description d'origine

La description telle que publiée par la source (souvent en anglais).

Impact

A configuration-dependent authentication bypass exists in OAuth2 Proxy.

Deployments are affected when all of the following are true:

  • OAuth2 Proxy is configured with --reverse-proxy
  • and at least one rule is defined with --skip_auth_routes or the legacy --skip-auth-regex

OAuth2 Proxy may trust a client-supplied X-Forwarded-Uri header when --reverse-proxy is enabled and --skip-auth-route or --skip-auth-regex 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.

Patches

This issue is addressed as part of the newly introduced --trusted-proxy-ip flag in v7.15.2. If you leave it unset, OAuth2 Proxy will continue to trust ALL source IPs (0.0.0.0/0) for backwards compatibility, which means a client may still be able to spoof forwarded headers. Therefore after upgrading we urge you to use the new --trusted-proxy-ip flag to set the IPs or CIDR ranges of the reverse proxies that are allowed to send X-Forwarded-* headers and furthermore implement the mitigation steps outlined below to properly configure your load balancer infrastructure.

Mitigation

  • Strip any client-provided X-Forwarded-Uri header at the reverse proxy or load balancer level
  • Explicitly overwrite…

Source: NIST National Vulnerability Database NVD GitHub Advisory

Résumé généré automatiquement

Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.

Une vulnérabilité référencée CVE-2026-40575 a été découverte dans github.com/oauth2-proxy/oauth2-proxy/v7.
Des informations confidentielles peuvent être exposées. Score CVSS : 9.1/10.
Action : mettez à jour github.com/oauth2-proxy/oauth2-proxy/v7 vers 7.15.2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/oauth2-proxy/oauth2-proxy/v7 CVE-2026-40575 » sur le site de l'éditeur.

CVE-2026-40575 (github.com/oauth2-proxy/oauth2-proxy/v7) — CWE-290 / CVSS v3 9.1
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Correctif : 7.15.2 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.

❓ Quel est le problème

Une vulnérabilité (CWE-290) affecte github.com/oauth2-proxy/oauth2-proxy/v7.

📍 Périmètre concerné

Consultez l'avis de l'éditeur pour les versions affectées de github.com/oauth2-proxy/oauth2-proxy/v7.

🔥 Gravité

Gravité : Critique (CVSS 9.1/10). Des informations confidentielles peuvent être exposées.

🔧 Comment corriger

Mettre à jour vers 7.15.2.

🛡️ Contournement

En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.

🔍 Détection

Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.

Actions de réponse

Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre

  1. 1
    Identify exposure identify
    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 patch patch
    Upgrade github.com/oauth2-proxy/oauth2-proxy/v7 to 7.15.2

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

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

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

Paquets affectés

go github.com/oauth2-proxy/oauth2-proxy/v7
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.15.2"}]}]

Références

Nous utilisons des cookies pour l'analyse d'audience et la mesure publicitaire. Ce réglage s'applique à tous les sites de Game co., Ltd. En savoir plus