cve.bz

CVE-2021-21291

6.1 mediumEPSS 1.6%

Medium (6.1) in oauth2 proxy project oauth2 proxy. EPSS 1.6% chance of exploitation in the next 30 days. Fixed in github.com/oauth2-proxy/oauth2-proxy/v7 7.0.0.

OAuth2 Proxy is an open-source reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group. In OAuth2 Proxy before version 7.0.0, for users that use the whitelist domain feature, a domain that ended in a similar way to the intended domain could have been allowed as a redirect. For example, if a whitelist domain was configured for ".example.com", the intention is that subdomains of example.com are allowed. Instead, "example.com" and "badexample.com" could also match. This is fixed in version 7.0.0 onwards. As a workaround, one can disable the whitelist domain feature and run separate OAuth2 Proxy instances for each subdomain.

Severity

CVSS 3.1

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

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4mf2-f3wh-gvf2Gogithub.com/oauth2-proxy/oauth2-proxy/v7<7.0.07.0.0
GHSA-4mf2-f3wh-gvf2Gogithub.com/oauth2-proxy/oauth2-proxy<=3.2.0no fix published
GO-2022-0790Gogithub.com/oauth2-proxy/oauth2-proxyall versionsno fix published
GO-2022-0790Gogithub.com/oauth2-proxy/oauth2-proxy/v7<7.0.07.0.0

References

Check your stackJSON