CVE-2026-40575: oauth2-proxy · Authentication Bypass by Spoofing
Affects oauth2-proxySource GCVE Database
Not known to be exploited · CVSS 9.1 Critical : upgrade to 7.15.2 as a priority.
Data as of 12 Nov 2026, 01:33 UTC
Sources agree
| CNA (GitHub_M) | CVSS 3.1 | 9.1 |
|---|---|---|
| ADP (redhat-SADP) | CVSS 3.1 | 8.7 |
- Patch
- Available – fixed in 7.15.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 11 Nov 2026.
What to do
Upgrade oauth2-proxy to 7.15.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| oauth2-proxy oauth2-proxy | Affected
| Fixed in
|
AI-suggested
A fix is available in oauth2-proxy version 7.15.2. Users should upgrade to this version to remediate the vulnerability. For those unable to upgrade immediately, mitigations include: (1) stripping any client-provided X-Forwarded-Uri header before it reaches oauth2-proxy; (2) overwriting the X-Forwarded-Uri header with the actual request URI at the reverse proxy or load balancer (e.g., using nginx proxy_set_header directive); (3) restricting direct client access to oauth2-proxy so it is only accessible through a trusted reverse proxy; and (4) removing or narrowing --skip-auth-regex or --skip-auth-route rules where possible. These mitigations reduce the risk of header spoofing and unauthorized access.
Description
OAuth2 Proxy versions 7.5.0 through 7.15.1 contain an authentication bypass vulnerability when configured with --reverse-proxy and either --skip-auth-regex or --skip-auth-route. An attacker can spoof the X-Forwarded-Uri header, causing OAuth2 Proxy to evaluate authentication rules against a manipulated path, allowing unauthorized access to protected routes without a valid session. The issue is fixed in version 7.15.2. Mitigations include stripping or overwriting the X-Forwarded-Uri header before it reaches OAuth2 Proxy, restricting direct client access, and narrowing skip-auth rules.
References
- github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-7x63-xv5r-3p2x (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-40575 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2460449 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40575.json (opens in a new tab)