CVE-2021-21291
CVE-2021-21291 is a medium-severity vulnerability in Oauth2 Proxy Project Oauth2 Proxy with a CVSS 3.x base score of 4.7. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-601.
Key facts
- Severity: Medium (CVSS 3.x base score 4.7)
- CVSS v2: 5.8
- EPSS exploit prediction: 1% (68th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-601
- Affected product: Oauth2 Proxy Project Oauth2 Proxy
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2021-21291?
- 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.
- How severe is CVE-2021-21291?
- CVE-2021-21291 has a CVSS 3.x base score of 4.7, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2021-21291 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (68th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21291?
- CVE-2021-21291 affects Oauth2 Proxy Project Oauth2 Proxy. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21291?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-21291 published?
- CVE-2021-21291 was published on 2021-02-02 and last updated on 2026-06-17.
References
- https://github.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725
- https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.0.0
- https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-4mf2-f3wh-gvf2
- https://pkg.go.dev/github.com/oauth2-proxy/oauth2-proxy/v7
Affected products (1)
- cpe:2.3:a:oauth2_proxy_project:oauth2_proxy:*:*:*:*:*:*:*:*
More vulnerabilities in Oauth2 Proxy Project Oauth2 Proxy
- CVE-2026-40575 — Critical (CVSS 9.1): OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 may…
- CVE-2026-34457 — Critical (CVSS 9.1): OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions prior to 7.15.2 contain a…
- CVE-2025-54576 — Critical (CVSS 9.1): OAuth2-Proxy is an open-source tool that can act as either a standalone reverse proxy or a middleware component…
- CVE-2017-1000069 — High (CVSS 8.8): CSRF in Bitly oauth2_proxy 2.1 during authentication flow
- CVE-2026-41059 — High (CVSS 8.2): OAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 have…
- CVE-2020-11053 — High (CVSS 7.1): In OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. Users can provide a redirect address for the…
All CVEs affecting Oauth2 Proxy Project Oauth2 Proxy →
Other CWE-601 (Open Redirect) vulnerabilities
- CVE-2018-3774 — Critical (CVSS 10.0): Incorrect parsing in url-parse <1.4.3 returns wrong hostname which leads to multiple vulnerabilities such as SSRF, Open…
- CVE-2019-25282 — Critical (CVSS 9.8): V-SOL GPON/EPON OLT Platform v2.03 contains an open redirect vulnerability in the script that allows attackers to…
- CVE-2020-36912 — Critical (CVSS 9.8): Plexus anblick Digital Signage Management 3.1.13 contains an open redirect vulnerability in the 'PantallaLogin' script…
- CVE-2025-43526 — Critical (CVSS 9.8): This issue was addressed with improved URL validation. This issue is fixed in Safari 26.2, macOS Tahoe 26.2. On a Mac…
- CVE-2025-55031 — Critical (CVSS 9.8): Malicious pages could use Firefox for iOS to pass FIDO: links to the OS and trigger the hybrid passkey transport. An…
- CVE-2024-22891 — Critical (CVSS 9.8): Nteract v.0.28.0 was discovered to contain a remote code execution (RCE) vulnerability via the Markdown link.