CVE-2021-21291: oauth2_proxy_project oauth2_proxy Open Redirect
Vulnerability summary
CVE-2021-21291 is a medium (CVSS 6.1) Open Redirect vulnerability in oauth2_proxy_project oauth2_proxy. EPSS estimates a 1.58% chance of exploitation in the next 30 days, higher than 75.1% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 02-02-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA4.7MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
- OSV · GoEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
1.58%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.58% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundOauth2 Proxy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Github.com/oauth2-proxy1 product
- oauth2-proxy≤ 3.2.0 | All versions (No fix recorded)
Github.com/oauth2-proxy/oauth2-proxy1 product
- v7< 7.0.0
Oauth2_proxy_project1 product
- oauth2_proxy< 7.0.0
Oauth2-proxy1 product
- oauth2-proxy< 7.0.0
4 vendors · 4 products
References
5 links- github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-4mf2-f3wh-gvf2X Refsource CONFIRMWEBAdvisoryExploitThird Party Advisory
- github.com/oauth2-proxy/oauth2-proxy/releases/tag/v7.0.0X Refsource MISCWEBRelease NotesThird Party Advisory
- github.com/oauth2-proxy/oauth2-proxy/commit/780ae4f3c99b579cb2ea9845121caebb6192f725X Refsource MISCWEBFIXPatchThird Party Advisory