CVE-2021-21291
CVE-2021-21291 — Subdomain checking of whitelisted domains could allow unintended redirects
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
2%
chance of exploitation in 30 days
CVSS base
4.7
MEDIUM
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 4.7 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-601
References
4 on the record
- github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-4mf2-f3wh-gvf2
x_refsource_CONFIRM
- github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.0.0
x_refsource_MISC
- pkg.go.dev/github.com/oauth2-proxy/oauth2-proxy/v7
x_refsource_MISC
- github.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-38000 Google Chromium Intents Improper Input Validation VulnerabilityCVSS 6.1 · CISA KEV
- CVE-2012-0518 Oracle Fusion Middleware Unspecified VulnerabilityCVSS 4.7 · CISA KEV
- CVE-2026-8323 Open Redirect in Armiya Information Technologies' Access Control SystemCVSS 9.3
- CVE-2025-4123 A cross-site scripting (XSS) vulnerability exists in Grafana caused by combining a client path traversal and open redirectCVSS 6.1
- CVE-2026-1339 Open redirect vulnerability - UCMDB/Operations Bridge ManagerCVSS 5.4
- CVE-2018-11784 When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a redirect to a…CVSS 4.3
Elsewhere on this site
- Oauth2 Proxyevery CVE for this vendor
- CWE-601other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.