{"answers":{"affected":"3 open source packages ship an affected version, including github.com/oauth2-proxy/oauth2-proxy and oauth2-proxy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-4037 in the wild and no public exploit code.","fix":"Upgrade github.com/oauth2-proxy/oauth2-proxy to 6.0.0 or later.","what":"CVE-2020-4037 is a medium-severity vulnerability in OAuth2 Proxy, published on 29 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-4037 and fix it if it is affected.\n\nWhat it is: CVE-2020-4037 is a medium-severity vulnerability in OAuth2 Proxy, published on 29 Jun 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-4037 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/oauth2-proxy/oauth2-proxy (Go): affected from 5.1.1; fixed in 6.0.0\n- github.com/oauth2-proxy/oauth2-proxy (Go): affected from 5.1.1; fixed in 6.0.0\n- oauth2-proxy (Bitnami): affected from 5.1.1; fixed in 6.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-4037/ (Markdown: https://insights.sbomify.com/CVE-2020-4037/index.md)","id":"CVE-2020-4037","markdown":"https://insights.sbomify.com/CVE-2020-4037/index.md","name":"CVE-2020-4037","record":{"aliases":["BIT-oauth2-proxy-2020-4037","GHSA-5m6c-jp6f-2vcv"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"OAuth2 Proxy","requires_auth":"none","summary":"Attackers can exploit insufficient validation of redirect URLs in OAuth2 Proxy to send authenticated users to malicious sites.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"oauth2_proxy","vendor":"oauth2_proxy_project"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"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.","ecosystems":["Bitnami","Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Open Redirect in OAuth2 Proxy","id":"CVE-2020-4037","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"open_redirect","year":"2020"},"n_packages":3,"n_references":2,"next":{"headline":"Reflected XSS in GraphQL Playground","id":"CVE-2020-4038"},"packages":[{"ecosystem":"Bitnami","fixed":["6.0.0"],"introduced":["5.1.1"],"last_affected":[],"package":"oauth2-proxy","purl":"pkg:bitnami/oauth2-proxy","source":"BIT-oauth2-proxy-2020-4037"},{"ecosystem":"Go","fixed":["6.0.0"],"introduced":["5.1.1"],"last_affected":[],"package":"github.com/oauth2-proxy/oauth2-proxy","purl":null,"source":"GHSA-5m6c-jp6f-2vcv"},{"ecosystem":"Go","fixed":["6.0.0"],"introduced":["5.1.1"],"last_affected":[],"package":"github.com/oauth2-proxy/oauth2-proxy","purl":"pkg:golang/github.com/oauth2-proxy/oauth2-proxy","source":"GHSA-5m6c-jp6f-2vcv"}],"prev":{"headline":"DoS or local data modification via malicious record IDs in WatermelonDB","id":"CVE-2020-4035"},"products":["OAuth2 Proxy"],"published":"2020-06-29","related":[{"cvss_score":9.1,"headline":"OAuth2 Proxy has an Authentication Bypass via X-Forwarded-Uri Header Spoofing","id":"CVE-2026-40575","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":9.1,"headline":"OAuth2 Proxy: Health Check User-Agent Matching Bypasses Authentication in auth_request Mode","id":"CVE-2026-34457","kev_date_added":null,"published":"2026-04-14"},{"cvss_score":9.1,"headline":"OAuth2-Proxy has authentication bypass in oauth2-proxy skip_auth_routes due to Query Parameter inclusion","id":"CVE-2025-54576","kev_date_added":null,"published":"2025-07-30"},{"cvss_score":8.8,"headline":"Cross-site Request Forgery (CSRF)","id":"CVE-2017-1000069","kev_date_added":null,"published":"2017-07-13"},{"cvss_score":8.2,"headline":"OAuth2 Proxy has an Authentication Bypass via Fragment Confusion in skip_auth_routes and skip_auth_regex","id":"CVE-2026-41059","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":7.1,"headline":"Open Redirect in OAuth2 Proxy","id":"CVE-2020-11053","kev_date_added":null,"published":"2020-05-07"},{"cvss_score":6.8,"headline":"OAuth2 Proxy has an Authorization Bypass in Email Domain Validation via Malformed Multi-@ Email Claims","id":"CVE-2026-40574","kev_date_added":null,"published":"2026-04-21"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["OAuth2 Proxy"]},"summary":"Attackers can exploit insufficient validation of redirect URLs in OAuth2 Proxy to send authenticated users to malicious sites.","url":"https://insights.sbomify.com/CVE-2020-4037/"}