# CVE-2026-40574: OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-21 · Modified: 2026-04-21
- Aliases: GHSA-c5c4-8r6x-56w3, BIT-oauth2-proxy-2026-40574, GO-2026-5314
- Record: https://cvemate.com/vulnerability/CVE-2026-40574 · JSON: https://cvemate.com/vulnerability/CVE-2026-40574/json

## Description

```text
OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Prior to 7.15.2, an authorization bypass exists in OAuth2 Proxy as part of the email_domain enforcement option. An attacker may be able to authenticate with an email claim such as attacker@evil.com@company.com and satisfy an allowed domain check for company.com, even though the claim is not a valid email address. The issue ONLY affects deployments that rely on email_domain restrictions and accept email claim values from identity providers or claim mappings that do not strictly enforce normal email syntax. This vulnerability is fixed in 7.15.2.
```

## Signals

- CVSS: 6.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.217%, percentile 12.86%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/oauth2-proxy oauth2-proxy (Go): All versions (No fix recorded)
- github.com/oauth2-proxy/oauth2-proxy v7 (Go): \< 7.15.2
- oauth2\_proxy\_project oauth2\_proxy: \< 7.15.2
- oauth2-proxy oauth2-proxy: \< 7.15.2

## References

- <https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-c5c4-8r6x-56w3>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40574>
- <https://github.com/oauth2-proxy/oauth2-proxy>

---

Data as of 2026-12-05T07:16:19.493Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
