{"id":"CVE-2026-34457","aliases":["CVE-2026-34457","GHSA-5hvv-m4w4-gf6v","BIT-OAUTH2-PROXY-2026-34457","GO-2026-5147"],"related":[],"kind":"vulnerability","state":"published","title":"OAuth2 Proxy: Health Check User-Agent Matching Bypasses Authentication in auth_request Mode","summary":"OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions prior to 7.15.2 contain a configuration-dependent authentication bypass in deployments where OAuth2 Proxy is used with an auth_request-style integration (such as nginx auth_request) and either --ping-user-agent is set or --gcp-healthchecks is enabled. In affected configurations, OAuth2 Proxy treats any request with the configured health check User-Agent value as a successful health check regardless of the requested path, allowing an unauthenticated remote attacker to bypass authentication and access protected upstream resources. Deployments that do not use auth_request-style subrequests or that do not enable --ping-user-agent/--gcp-healthchecks are not affected. This issue is fixed in 7.15.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions prior to 7.15.2 contain a configuration-dependent authentication bypass in deployments where OAuth2 Proxy is used with an auth_request-style integration (such as nginx auth_request) and either --ping-user-agent is set or --gcp-healthchecks is enabled. In affected configurations, OAuth2 Proxy treats any request with the configured health check User-Agent value as a successful health check regardless of the requested path, allowing an unauthenticated remote attacker to bypass authentication and access protected upstream resources. Deployments that do not use auth_request-style subrequests or that do not enable --ping-user-agent/--gcp-healthchecks are not affected. This issue is fixed in 7.15.2.","source":"cvelist"},{"lang":"en","text":"### Impact\nA configuration-dependent authentication bypass exists in OAuth2 Proxy.\n\nDeployments are affected when all of the following are true:\n\n- OAuth2 Proxy is used with an `auth_request`-style integration   (for example, nginx `auth_request`)\n- `--ping-user-agent` is set or `--gcp-healthchecks` is enabled\n\nIn affected configurations, OAuth2 Proxy will treat a request with the configured health check `User-Agent` value as a successful health check regardless of the requested path. This allows an unauthenticated remote attacker to bypass authentication and access protected upstream resources without completing the normal login flow.\n\nThis issue does not affect deployments that do not use `auth_request`-style subrequests, or that do not enable  `--ping-user-agent`/`--gcp-healthchecks`.\n\n### Patches\nUsers should upgrade to `v7.15.2` or later once available. Deployments running versions prior to `v7.15.2` should be considered affected if they use `auth_request`-style authentication together with `--ping-user-agent` or  `--gcp-healthchecks`.\n\n### Workarounds\nUsers can mitigate this issue by:\n\n- disabling `--gcp-healthchecks`\n- removing any configured `--ping-user-agent`\n- ensuring the reverse proxy does not forward client-controlled `User-Agent`  headers to the OAuth2 Proxy auth subrequest\n- using path-based health checks only, on dedicated health check endpoints\n\nExample nginx mitigation for the auth subrequest:\n\n```nginx\nlocation = /oauth2/auth {\n    internal;\n    proxy_pass http://127.0.0.1:4180;\n    proxy_pass_request_body off;\n    proxy_set_header Content-Length \"\";\n    proxy_set_header Host $host;\n    # set to value that isn't the same as your configured PingUserAgent or GCPs \"GoogleHC/1.0\"\n    proxy_set_header User-Agent \"oauth2-proxy-auth-request\";\n}\n```","format":"markdown","source":"ghsa"},{"lang":"en","text":"OAuth2 Proxy's Health Check User-Agent Matching Bypasses Authentication in auth_request Mode in github.com/oauth2-proxy/oauth2-proxy","format":"markdown","source":"go"},{"lang":"es","text":"OAuth2 Proxy es un proxy inverso que proporciona autenticación utilizando proveedores OAuth2. Las versiones anteriores a la 7.15.2 contienen una omisión de autenticación dependiente de la configuración en implementaciones donde OAuth2 Proxy se utiliza con una integración de estilo auth_request (como nginx auth_request) y se establece --ping-user-agent o se habilita --gcp-healthchecks. En las configuraciones afectadas, OAuth2 Proxy trata cualquier solicitud con el valor configurado de User-Agent de verificación de estado como una verificación de estado exitosa, independientemente de la ruta solicitada, permitiendo a un atacante remoto no autenticado omitir la autenticación y acceder a recursos ascendentes protegidos. Las implementaciones que no utilizan subsolicitudes de estilo auth_request o que no habilitan --ping-user-agent/--gcp-healthchecks no se ven afectadas. Este problema se soluciona en la 7.15.2.","source":"nvd"}],"published":"2026-04-14T22:14:38.937Z","modified":"2026-09-08T08:48:10.755Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-290"],"affected":[{"ranges":[{"version":"< 7.15.2","status":"affected"}],"vendor":"oauth2-proxy","product":"oauth2-proxy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.2.0"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Go","package":"github.com/oauth2-proxy/oauth2-proxy/v7","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy/v7","source":"go"},{"ranges":[{"status":"affected","fixed":"7.15.2"}],"vendor":"oauth2_proxy_project","product":"oauth2_proxy","cpe":"cpe:2.3:a:oauth2_proxy_project:oauth2_proxy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"7.15.2"}],"ecosystem":"Bitnami","package":"oauth2-proxy","purl":"pkg:bitnami/oauth2-proxy","source":"bitnami"}],"references":[{"url":"https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5hvv-m4w4-gf6v","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.15.2","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34457","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/oauth2-proxy/oauth2-proxy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-15T17:43:23.417Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34457","url":"https://www.cve.org/CVERecord?id=CVE-2026-34457","licence":"CVE Terms of Use","modified":"2026-04-15T17:43:30.711Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5hvv-m4w4-gf6v","url":"https://github.com/advisories/GHSA-5hvv-m4w4-gf6v","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:29.674Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5147","url":"https://pkg.go.dev/vuln/GO-2026-5147","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:29.674Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34457","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34457","licence":"Public domain","modified":"2026-07-24T22:10:00.140Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-OAUTH2-PROXY-2026-34457","url":"https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2026-34457","licence":"Apache-2.0","modified":"2026-09-08T08:48:10.755Z"}],"updatedAt":"2026-11-25T22:59:18.804Z","epss":{"score":0.00504,"percentile":0.44688,"date":"2026-12-01T12:00:22.000Z"}}