← Vulnerability feed

Vulnerability record · CVE-2021-21291 · published 2 February 2021

CVE-2021-21291: Oauth2 proxy project oauth2 proxy open redirect vulnerability

OOauth2 Proxy Project · Oauth2 Proxy

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.

6.1 CVSS 3.1 Medium EPSS 1.6% · top 25.5% CWE-601 · Open redirect
6.1CVSS 3.1 base score, v2 5.8
1.6%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-21291 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2026-40575Oauth2 proxy project oauth2 proxy authentication bypass by spoofing vulnerabilityOAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 may trust a client-supplied `X-For…EPSS 0.73%9.1CVE-2026-34457Oauth2 proxy project oauth2 proxy authentication bypass by spoofing vulnerabilityOAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions prior to 7.15.2 contain a configuration-dependent authe…EPSS 0.66%9.1CVE-2025-54576Oauth2 proxy project oauth2 proxy authentication bypass by spoofing vulnerabilityOAuth2-Proxy is an open-source tool that can act as either a standalone reverse proxy or a middleware component integrated into existing reverse prox…EPSS 1.2%8.8CVE-2017-1000069Oauth2 proxy project oauth2 proxy cross-site request forgery vulnerabilityCSRF in Bitly oauth2_proxy 2.1 during authentication flowEPSS 0.74%8.2CVE-2026-41059Oauth2 proxy project oauth2 proxy authentication bypass via alternate path vulnerabilityOAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Versions 7.5.0 through 7.15.1 have a configuration-dependent aut…EPSS 0.43%6.8CVE-2026-40574Oauth2 proxy project oauth2 proxy incorrect authorization vulnerabilityOAuth2 Proxy is a reverse proxy that provides authentication using OAuth2 providers. Prior to 7.15.2, an authorization bypass exists in OAuth2 Proxy …EPSS 0.34%6.1CVE-2020-11053Oauth2 proxy project oauth2 proxy open redirect vulnerabilityIn OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. Users can provide a redirect address for the proxy to send the authenticated u…EPSS 0.79%6.1CVE-2020-5233Oauth2 proxy project oauth2 proxy open redirect vulnerabilityOAuth2 Proxy before 5.0 has an open redirect vulnerability. Authentication tokens could be silently harvested by an attacker. This has been patched i…EPSS 1.3%

Source: NIST National Vulnerability Database (record CVE-2021-21291), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.