CVE & CISA-KEV Catalog

CVE-2021-21291

MEDIUM
4.7
CVSS v3
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.

How to fix

Remediation Available
oauth2 proxyNVD
Affected:< 7.0.0Fixed in:7.0.0CVE-2021-21291derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

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

Exploit Intelligence

1.35%probability of exploitation in 30 days
68thpercentile

Moderate risk: more likely to be exploited than 68% of all known CVEs.

References

Exploit1
Third-Party Advisory2

Related Vulnerabilities

Other CWE-601 (Open Redirect) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-4123High7.698%-Fix
CVE-2018-11784Medium4.394%-Fix
CVE-2021-22881Medium6.187%-Fix
CVE-2022-45402Medium6.182%-Fix
CVE-2017-1000117High8.878%-Fix
CVE-2019-10098Medium6.174%-Fix
Embed a live status badge for CVE-2021-21291
CVE-2021-21291 severity badge

Markdown

[![CVE-2021-21291](https://tridentstack.com/cve/badge/CVE-2021-21291.svg)](https://tridentstack.com/cve/CVE-2021-21291)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-21291"><img src="https://tridentstack.com/cve/badge/CVE-2021-21291.svg" alt="CVE-2021-21291"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.