GHSA-WCX9-CCPJ-HX3C

GHSA-WCX9-CCPJ-HX3C is a medium-severity open redirect vulnerability in github.com/coder/coder/v2 (go), affecting versions = 2.16.0. It is fixed in 2.16.1, 2.15.3, 2.14.4.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect')

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.

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

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

Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites. Typical impact: phishing and credential harvesting via a trusted domain.

GHSA-WCX9-CCPJ-HX3C has a CVSS score of 4.3 (Medium). The vector is network-reachable, no privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.16.1, 2.15.3, 2.14.4); upgrading removes the vulnerable code path.

Affected versions

github.com/coder/coder/v2 (= 2.16.0) github.com/coder/coder/v2 (>= 2.15.0, < 2.15.3) github.com/coder/coder/v2 (>= 2.3.1, < 2.14.4)

Security releases

github.com/coder/coder/v2 → 2.16.1 (go) github.com/coder/coder/v2 → 2.15.3 (go) github.com/coder/coder/v2 → 2.14.4 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

github.com/coder/coder/v2 to 2.16.1 or later; github.com/coder/coder/v2 to 2.15.3 or later; github.com/coder/coder/v2 to 2.14.4 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is GHSA-WCX9-CCPJ-HX3C? GHSA-WCX9-CCPJ-HX3C is a medium-severity open redirect vulnerability in github.com/coder/coder/v2 (go), affecting versions = 2.16.0. It is fixed in 2.16.1, 2.15.3, 2.14.4. Untrusted input controls a URL used for redirection, which can forward users to attacker-controlled sites.
  2. How severe is GHSA-WCX9-CCPJ-HX3C? GHSA-WCX9-CCPJ-HX3C has a CVSS score of 4.3 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of github.com/coder/coder/v2 are affected by GHSA-WCX9-CCPJ-HX3C? github.com/coder/coder/v2 (go) versions = 2.16.0 is affected.
  4. Is there a fix for GHSA-WCX9-CCPJ-HX3C? Yes. GHSA-WCX9-CCPJ-HX3C is fixed in 2.16.1, 2.15.3, 2.14.4. Upgrade to this version or later.
  5. Is GHSA-WCX9-CCPJ-HX3C exploitable, and should I be worried? Whether GHSA-WCX9-CCPJ-HX3C is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether GHSA-WCX9-CCPJ-HX3C is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix GHSA-WCX9-CCPJ-HX3C?
    • Upgrade github.com/coder/coder/v2 to 2.16.1 or later
    • Upgrade github.com/coder/coder/v2 to 2.15.3 or later
    • Upgrade github.com/coder/coder/v2 to 2.14.4 or later

Other vulnerabilities in github.com/coder/coder/v2

Stop the waste.
Protect your environment with Kodem.