# CVE-2020-4037: Open Redirect in OAuth2 Proxy

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.90%, higher than 60% of CVEs (2026-12-01)
- Published: 2020-06-29T19:45:13.000Z
- Modified: 2026-09-08T08:48:10.738Z
- Also known as: GHSA-5m6c-jp6f-2vcv, BIT-OAUTH2-PROXY-2020-4037
- Weaknesses: CWE-601
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OAuth2 Proxy OAuth2 Proxy: >= 5.1.1, < 6.0.0
- github.com/oauth2-proxy/oauth2-proxy (Go): from 5.1.1 before 6.0.0
- oauth2_proxy_project oauth2_proxy: from 5.1.1 before 6.0.0
- oauth2-proxy (Bitnami): from 5.1.1 before 6.0.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/oauth2-proxy/oauth2-proxy/security/advisories/GHSA-5m6c-jp6f-2vcv> (advisory, third-party-advisory, web)
- <https://github.com/oauth2-proxy/oauth2-proxy/commit/ee5662e0f5001d76ec76562bb605abbd07c266a2> (advisory, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-4037> (advisory, web)
- <https://github.com/oauth2-proxy/oauth2-proxy/releases/tag/v6.0.0> (web)

## Sources

- CVE List: [CVE-2020-4037](https://www.cve.org/CVERecord?id=CVE-2020-4037), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5m6c-jp6f-2vcv](https://github.com/advisories/GHSA-5m6c-jp6f-2vcv), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-4037](https://nvd.nist.gov/vuln/detail/CVE-2020-4037), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-OAUTH2-PROXY-2020-4037](https://osv.dev/vulnerability/BIT-OAUTH2-PROXY-2020-4037), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-4037 · Whole record: https://cve.day/CVE-2020-4037.json · Rebuilt by cve.day 2026-11-25T22:57:53.188Z
