Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect')
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-601.
Summary
### 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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/coder/coder/v2 (Go) | 2.16.0 to before 2.16.1 | 2.16.1 | Patch available | GHSA-wcx9-ccpj-hx3c |
| — | github.com/coder/coder/v2 (Go) | 2.15.0 to before 2.15.3 | 2.15.3 | Patch available | GHSA-wcx9-ccpj-hx3c |
| — | github.com/coder/coder/v2 (Go) | 2.3.1 to before 2.14.4 | 2.14.4 | Patch available | GHSA-wcx9-ccpj-hx3c |
- github.com/coder/coder/v2 (Go) Vendor— Affected 2.16.0 to before 2.16.1 Fixed in 2.16.1 Patch available GHSA-wcx9-ccpj-hx3c
- github.com/coder/coder/v2 (Go) Vendor— Affected 2.15.0 to before 2.15.3 Fixed in 2.15.3 Patch available GHSA-wcx9-ccpj-hx3c
- github.com/coder/coder/v2 (Go) Vendor— Affected 2.3.1 to before 2.14.4 Fixed in 2.14.4 Patch available GHSA-wcx9-ccpj-hx3c
Remediation
- Fix · GHSA-wcx9-ccpj-hx3c github.com/coder/coder/v2 (Go) Fixed in 2.16.1 Advisory →
- Fix · GHSA-wcx9-ccpj-hx3c github.com/coder/coder/v2 (Go) Fixed in 2.15.3 Advisory →
- Fix · GHSA-wcx9-ccpj-hx3c github.com/coder/coder/v2 (Go) Fixed in 2.14.4 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-wcx9-ccpj-hx3c
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences