CVE-2020-4037
Description
In OAuth2 Proxy from version 5.1.1 and less than version 6.0.0, users can provide a redirect address for the proxy to send the authenticated user to at the end of the authentication flow. This is expected to be the original URL that the user was trying to access. This redirect URL is checked within the proxy and validated before redirecting the user to prevent malicious actors providing redirects to potentially harmful sites. This has been fixed in version 6.0.0.
Severity
MEDIUM
CVSS v3
4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N · source cna
Exploit chance (EPSS)
0.896%
chance of exploitation in the next 30 days
higher than 60.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-601: URL Redirection to Untrusted Site
Timeline
- 2020-06-29Published by the CNA19:45 UTC
- 2021-12-20GitHub advisory published (GHSA-5m6c-jp6f-2vcv)539 days after publication
Exploit and advisory records
GitHub advisory GHSA-5m6c-jp6f-2vcv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/oauth2-proxy/oauth2-proxy | from 5.1.1 before 6.0.0 | 6.0.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| oauth2_proxy_project oauth2_proxy | from 5.1.1 before 6.0.0fixed in 6.0.0 | 6.0.0 |
References
- https://github.com/oauth2-proxy/oauth2-proxy/commit/ee5662e0f5001d76ec76562bb605abbd07c266a2
- https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5m6c-jp6f-2vcv
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-4037'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-4037'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-4037'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-4037'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).