# CVE-2024-58398: Coder 2.3.1 before 2.16.1 Open Redirect via Login Page redirect Parameter

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: Passive; Confidentiality impact: None; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.37% (percentile 23, 2026-11-26)
- **CWE:** CWE-601
- **Aliases:** GHSA-wcx9-ccpj-hx3c, GO-2024-3228
- **Published:** 2024-10-28T18:31:57.000Z
- **Modified:** 2026-11-09T10:10:00.217Z

## Who should check

- Projects that depend on Go package github.com/coder/coder/v2 (\>= 2.16.0, \< 2.16.1)
- Projects that depend on Go package github.com/coder/coder
- Anyone running coder \>= 2.16.0, \< 2.16.1
- Anyone running coder \>= 2.15.0, \< 2.15.3
- Anyone running coder \>= 2.3.1, \< 2.14.4

## 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 and fixed versions

- Go `github.com/coder/coder/v2`: affected \>= 2.16.0, \< 2.16.1; fixed 2.16.1, 2.15.3, 2.14.4 (osv)
- Go `github.com/coder/coder`: affected see advisory; fixed no fix listed yet (osv)
- coder: \>= 2.16.0, \< 2.16.1 (cvelist)
- coder: \>= 2.15.0, \< 2.15.3 (cvelist)
- coder: \>= 2.3.1, \< 2.14.4 (cvelist)

## Mitigation

- Upgrade github.com/coder/coder/v2 to one of 2.16.1, 2.15.3, 2.14.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-58398. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-58398.md
Affected: github.com/coder/coder/v2 >= 2.16.0, < 2.16.1; github.com/coder/coder
Fixed in: 2.16.1, 2.15.3, 2.14.4

Steps:
1. Search this machine and project for github.com/coder/coder/v2 (Go), github.com/coder/coder (Go), coder: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-58398 being exploited?

There is no confirmed exploitation: CVE-2024-58398 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.37% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-58398?

Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-58398?

github.com/coder/coder/v2 \>= 2.16.0, \< 2.16.1; github.com/coder/coder.

### Is there a fix for CVE-2024-58398?

Yes. Fixed in 2.16.1, 2.15.3, 2.14.4. Upgrade github.com/coder/coder/v2 to one of 2.16.1, 2.15.3, 2.14.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-58398?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c>
- patch: <https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6>
- other: <https://www.vulncheck.com/advisories/coder-2.3.1-before-2.16.1-open-redirect-via-login-page-redirect-parameter>
- other: <https://github.com/coder/coder>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-58398>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wcx9-ccpj-hx3c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3228> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-58398> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-58398>
