GHSA-wcx9-ccpj-hx3c: Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect')
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.
Published Oct 28, 2024
Affected packages
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- = 2.16.0
- Fixed in
- 2.16.1
- Check
go list -m github.com/coder/coder/v2
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- >= 2.15.0, < 2.15.3
- Fixed in
- 2.15.3
- Check
go list -m github.com/coder/coder/v2
github.com/coder/coder/v2
- Ecosystem
- Go
- Affected
- >= 2.3.1, < 2.14.4
- Fixed in
- 2.14.4
- Check
go list -m github.com/coder/coder/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
- https://github.com/jchristov
References
https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6
Credited to jchristov.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-8fxq-53rx-ph5f
Coder: Login endpoint user enumeration via timing-defense placeholder in password comparison
low3.7Aug 20, 2026GHSA-h58c-xccx-75m3
Coder: Stored HTML injection via unescaped ApplicationName and LogoURL appearance settings
low3.4Aug 20, 2026CVE-2026-55075
Coder vulnerable to OIDC account takeover via email-based user matching and email_verified bypass
high7.4Jul 6, 2026CVE-2026-55076
Coder's OIDC email_verified type coercion bypass enables account takeover via unverified email linking
high7.4Jul 6, 2026CVE-2026-55077
Coder: User-admin role can reset owner account password
high7.2Jul 6, 2026CVE-2026-55078
Coder: Zip upload decompression lacks aggregate size limit, enabling denial of service
medium6.5Jul 6, 2026
