Skip to main content
VulnerabilityPublished Updated

CVE-2026-40575: oauth2-proxy · Authentication Bypass by Spoofing

Affects oauth2-proxySource GCVE Database

0
Compare

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

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.

Sources agree

CVSS scores by source
CNA (GitHub_M)CVSS 3.19.1
ADP (redhat-SADP)CVSS 3.18.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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
oauth2-proxy oauth2-proxyAffected
  • >=7.5.0 <7.15.2
Fixed in
  • 7.15.2

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

Community reviews

Loading reviews…