{"id":"CVE-2024-58398","aliases":["GHSA-wcx9-ccpj-hx3c","GO-2024-3228"],"url":"https://o3.security/vulnerability/CVE-2024-58398","summary":"Coder 2.3.1 before 2.16.1 Open Redirect via Login Page redirect Parameter","details":"### Summary\nAn issue on Coder's login page allows attackers to craft a Coder URL that when clicked by a logged in user could redirect them to a website the attacker controls, e.g. https://google.com.\n\n### Details\nOn the login page, Coder checks for the presence of a `redirect` query parameter. On successful login, the user would be redirected to the location of the parameter. Improper sanitization allows attackers to specify a URL outside of the Coder application to redirect users to.\n\n### Impact\nCoder users could potentially be redirected to a untrusted website if tricked into clicking a URL crafted by the attacker. Coder authentication tokens are **not** leaked to the resulting website.\n\nTo check if your deployment is vulnerable, visit the following URL for your Coder deployment:\n- `https://<coder url>/login?redirect=https%3A%2F%2Fcoder.com%2Fdocs`\n\n### Patched Versions\nThis vulnerability is remedied in\n- v2.16.1\n- v2.15.3\n- v2.14.4\n\nAll versions prior to 2.3.1 are not affected.\n\n### Thanks\n- https://github.com/jchristov\n\n### References\nhttps://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c\nhttps://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6","published":"2026-10-17T18:46:07.073Z","modified":"2026-10-28T02:30:56.023142402Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/coder/coder/v2","fixedVersion":"2.16.1"},{"ecosystem":"Go","name":"github.com/coder/coder/v2","fixedVersion":"2.15.3"},{"ecosystem":"Go","name":"github.com/coder/coder/v2","fixedVersion":"2.14.4"}],"fix":{"url":"https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6","label":"coder/coder@69c1d98"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58398.json"},{"type":"ADVISORY","url":"https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58398"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/coder-2.3.1-before-2.16.1-open-redirect-via-login-page-redirect-parameter"},{"type":"FIX","url":"https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6"},{"type":"PACKAGE","url":"https://github.com/coder/coder"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:56.023142402Z"}}