cve.bz

CVE-2026-40574

6.8 mediumEPSS 0.2%

Medium (6.8) in oauth2 proxy project oauth2 proxy. EPSS 0.2% chance of exploitation in the next 30 days. Fixed in github.com/oauth2-proxy/oauth2-proxy/v7 7.15.2.

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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% chance of exploitation in the next 30 days; higher than 11% of CVEs (scores of 2026-10-31)
CWE
CWE-863
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c5c4-8r6x-56w3Gogithub.com/oauth2-proxy/oauth2-proxy/v7<7.15.27.15.2
GO-2026-5314Gogithub.com/oauth2-proxy/oauth2-proxyall versionsno fix published
GO-2026-5314Gogithub.com/oauth2-proxy/oauth2-proxy/v7<7.15.27.15.2

References

Check your stackJSON