Vulnerabilities

Security incident · CVE-2024-58398

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

Published Oct 28, 2024 · catalog updated Oct 18, 2026 · Coder vulnerable to post-auth

Open the advisory

Exploitation likelihood is not on this record for CVE-2024-58398. A missing EPSS score is not a low risk. Compare Coder vulnerable to post-auth with the linked advisory before you change production.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Coder vulnerable to post-auth).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
  • EPSS is missing. A missing score is not a low risk.
Severity
Medium5.3
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
Not in the current FIRST EPSS dataset
Remediation
Advisory link
Affected products
Go github.com/coder/coder · Go github.com/coder/coder/v2

### 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 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: - ### 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

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Go github.com/coder/coderversion unspecified
  • Go github.com/coder/coder/v22.15.0 → 2.15.3
  • Go github.com/coder/coder/v22.16.0 → 2.16.1
  • Go github.com/coder/coder/v22.3.1 → 2.14.4

How to fix CVE-2024-58398

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

Exploitation likelihood is not on this record for CVE-2024-58398. A missing EPSS score is not a low risk. Compare Coder vulnerable to post-auth with the linked advisory before you change production.

Which versions are affected?

Compare what you have installed with 2.15.0 → 2.15.3, 2.16.0 → 2.16.1, 2.3.1 → 2.14.4. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-601: URL Redirection to Untrusted Site (Open Redirect). EPSS is absent from the current FIRST dataset. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 17, 2026 · NIST NVD

    Detected

    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.

  2. Oct 18, 2026 · GitHub Advisory Database

    Fix available

    github.com/coder/coder/v2 fixed in 2.16.1; github.com/coder/coder/v2 fixed in 2.15.3; github.com/coder/coder/v2 fixed in 2.14.4

  3. Oct 18, 2026 · GitHub Advisory Database

    Fix available

    github.com/coder/coder/v2 fixed in 2.16.1

  4. Oct 18, 2026 · GitHub Advisory Database

    Fix available

    github.com/coder/coder/v2 fixed in 2.15.3

  5. Oct 18, 2026 · GitHub Advisory Database

    Fix available

    github.com/coder/coder/v2 fixed in 2.14.4

  6. Oct 18, 2026 · GitHub Advisory Database

    Fix available

    github.com/coder/coder/v2 fixed in 2.14.4

  7. Oct 18, 2026 · GitHub Advisory Database

    Updated

    ### 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 query parameter. On successful login, the user would be redirected to the location of the parameter. Improper sanitization allows atta

Sources

  • CVE.orgVulnerability recordCVE-2024-58398

    Official CVE identifier

    cve.org
  • GitHub Advisory DatabasePackage advisoryGHSA-wcx9-ccpj-hx3c

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • Go Vulnerability DatabasePackage advisoryGHSA-wcx9-ccpj-hx3c

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

    osv.dev
  • Go Vulnerability DatabasePackage advisoryGO-2024-3228

    Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder

    osv.dev
  • NIST NVDVulnerability recordCVE-2024-58398

    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, redirect

    nvd.nist.gov
  • OpenSSF OSV / OSV ScannerPackage advisoryGHSA-wcx9-ccpj-hx3c

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

    osv.dev
  • OpenSSF OSV / OSV ScannerPackage advisoryGO-2024-3228

    Coder vulnerable to post-auth URL redirection to untrusted site ('Open Redirect') in github.com/coder/coder

    osv.dev

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.