{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.16.0"
                  },
                  {
                    "fixed": "2.16.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.15.0"
                  },
                  {
                    "fixed": "2.15.3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.3.1"
                  },
                  {
                    "fixed": "2.14.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "69c1d981e3131e50d52b01f6a360abadaad699e6"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "683a7209b53215f43fbbcc9d84526acb361ab1d8"
            },
            {
              "fixed": "379ced672ec643a95fe63f538fc0b4044fa5455f"
            },
            {
              "introduced": "190cd1c7130bdeabbe690e8c2b8b08210873366a"
            },
            {
              "fixed": "6f68315f3bbe8c222a1e7e56b37527c3b9b83c9e"
            },
            {
              "introduced": "ab456276dc8277d41f9b781c3fc4de0e73e5104b"
            },
            {
              "fixed": "cb70300b3791c491814675557f471f572766f955"
            },
            {
              "fixed": "69c1d981e3131e50d52b01f6a360abadaad699e6"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-wcx9-ccpj-hx3c"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58398.json"
  },
  "details": "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.",
  "id": "CVE-2024-58398",
  "modified": "2026-10-24T02:30:43.928545364Z",
  "published": "2026-10-17T18:46:07.073Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58398.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-wcx9-ccpj-hx3c"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58398"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/coder-2.3.1-before-2.16.1-open-redirect-via-login-page-redirect-parameter"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coder/coder/commit/69c1d981e3131e50d52b01f6a360abadaad699e6"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Coder 2.3.1 before 2.16.1 Open Redirect via Login Page redirect Parameter"
}