5.3medium
Coder 2.3.1 before 2.16.1 Open Redirect via Login Page redirect Parameter
- Severity
- 5.3medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-wcx9-ccpj-hx3cGO-2024-3228
Description
Coder 2.3.1 before 2.14.4, 2.15.x before 2.15.3, and 2.16.0 before 2.16.1 contains an open redirect vulnerability in the login page because the redirect query parameter is improperly sanitized. Attackers can craft a Coder login URL that, when clicked by a logged-in user, redirects the victim to an attacker-controlled website for phishing.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coder coder | from 2.16.0 before 2.16.1, from 2.15.0 before 2.15.3, from 2.3.1 before 2.14.4 Not affected: 2.16.1, 2.15.3, 2.14.4 | CVE List |
| github.com/coder/coder/v2 (Go) | from 2.16.0 before 2.16.1, from 2.15.0 before 2.15.3, from 2.3.1 before 2.14.4 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/coder/coder (Go) | all versions | Go Vulnerability Database |
All scores
| VulnCheck | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Coder 2.3.1 before 2.14.4, 2.15.x before 2.15.3, and 2.16.0 before 2.16.1 contains an open redirect vulnerability in the login page because the redirect query parameter is improperly sanitized. Attackers can craft a Coder login URL that, when clicked by a logged-in user, redirects the victim to an attacker-controlled website for phishing.
GitHub Advisory Database
Summary
An 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.
Details
On 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.
Impact
Coder 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.
To check if your deployment is vulnerable, visit the following URL for your Coder deployment:
https://<coder url>/login?redirect=https%3A%2F%2Fcoder.com%2Fdocs
Patched Versions
This vulnerability is remedied in
- v2.16.1
- v2.15.3
- v2.14.4
All versions prior to 2.3.1 are not affected.
Thanks
References
https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6
Go Vulnerability Database
Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder
NVD (es)
Coder 2.3.1, versiones anteriores a 2.14.4; 2.15.x, versiones anteriores a 2.15.3; y 2.16.0, versiones anteriores a 2.16.1, contiene una vulnerabilidad de redirección abierta en la página de inicio de sesión porque el parámetro de consulta redirect no se depura correctamente. Los atacantes pueden crear una URL de inicio de sesión de Coder que, al ser pulsada por un usuario autenticado, redirige a la víctima a un sitio web controlado por el atacante para phishing.
References
| https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c | advisory, vendor-advisory, web | |
| https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6 | fix, patch, web | |
| https://www.vulncheck.com/advisories/coder-2.3.1-before-2.16.1-open-redirect-via-login-page-redirect-parameter | third-party-advisory | |
| https://github.com/coder/coder | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58398 changed 2026-10-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wcx9-ccpj-hx3c changed 2026-10-18 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3228 changed 2026-10-18 | CC-BY-4.0 |
| NVD | CVE-2024-58398 changed 2026-11-09 | Public domain |