CVE-2021-21291
Homebrew vulnerability analysis and mitigation

Overview

A vulnerability was discovered in OAuth2-Proxy's whitelist domain feature (CVE-2021-21291). The issue affected versions 3.0.0 through 6.1.1 and was patched in version 7.0.0. The vulnerability allowed unintended redirects through improper subdomain validation, where domains that ended similarly to the intended domain could be allowed as valid redirects (GitHub Advisory).

Technical details

The vulnerability stemmed from incorrect subdomain validation logic in the whitelist domain feature. When a whitelist domain was configured with a leading dot (e.g., .example.com), the code would incorrectly match not only intended subdomains but also unrelated domains that ended with the same string. For example, if .example.com was whitelisted, both legitimate-subdomain.example.com and malicious-site.badexample.com would be considered valid redirects (GitHub Advisory).

Impact

For users utilizing the whitelist domain feature, the vulnerability could allow attackers to redirect users to unintended and potentially malicious domains that shared a suffix with the legitimate whitelisted domain. This could lead to phishing attacks or other malicious redirects (GitHub Advisory).

Exploitability

The vulnerability was considered moderately exploitable. An attacker could exploit this by crafting a domain name that ended with the same string as a whitelisted domain, potentially leading to unauthorized redirects (GitHub Advisory).

Mitigation and workarounds

The issue was patched in OAuth2-Proxy version 7.0.0. Users are strongly recommended to upgrade to this version or later. As a temporary workaround, users can disable the whitelist domain feature and run separate OAuth2 Proxy instances for each subdomain (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68968HIGH7.5
  • Homebrew logoHomebrew
  • airflow
NoYesAug 12, 2026
CVE-2026-68971MEDIUM6.5
  • Homebrew logoHomebrew
  • airflow
NoYesAug 12, 2026
CVE-2026-68970MEDIUM6.5
  • Homebrew logoHomebrew
  • airflow
NoYesAug 12, 2026
CVE-2026-68969MEDIUM6.5
  • Homebrew logoHomebrew
  • airflow
NoYesAug 12, 2026
CVE-2026-68076MEDIUM5.4
  • Homebrew logoHomebrew
  • airflow
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management