{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:coder:coder:*:*:*:*:*:go:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.29.17"
              },
              {
                "introduced": "2.30.0"
              },
              {
                "fixed": "2.32.7"
              },
              {
                "introduced": "2.33.0"
              },
              {
                "fixed": "2.33.8"
              },
              {
                "introduced": "2.34.0"
              },
              {
                "fixed": "2.34.2"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "77253bfc55665027a374a5d2fb70f4ff74410326"
            },
            {
              "introduced": "43e67d12e278e13399cffc77f132e8e628339477"
            },
            {
              "fixed": "0374b00b63bc5043a507194f284ef298e0ea3b52"
            },
            {
              "introduced": "f009c17217e6bad9a61ba511d23735bc1ce94da0"
            },
            {
              "fixed": "f9486be96df392b017941ff6a6bd43a629adc86c"
            },
            {
              "introduced": "3006da5ef7a9c27755aa5b2f3f5f05d2c8971a58"
            },
            {
              "fixed": "d7774e5c4ca222ee89a8b6aa82b61c1f8bb81d1f"
            }
          ],
          "repo": "https://github.com/coder/coder",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-v54h-cp2w-9x4g"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-522",
      "CWE-601"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55431.json"
  },
  "details": "Coder allows organizations to provision remote development environments via Terraform. Prior to versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2, `coder open app` opens external workspace-app URLs without validating the scheme or host. When an external app URL contains the `$SESSION_TOKEN` placeholder the CLI replaces it with the user's real session token before handing the URL to the OS open handler. Practical exploitation requires the victim to run `coder open app` against a workspace whose external app definition the attacker controls. Only a malicious template author can control external app URLs. The fix in versions 2.29.7, 2.32.7, 2.33.8, and 2.34.2 applies a URL-scheme allowlist in the CLI and limits `$SESSION_TOKEN` substitution to trusted destinations like the web frontend. As a workaround, avoid running `coder open app` for untrusted workspaces.",
  "id": "CVE-2026-55431",
  "modified": "2026-07-10T03:53:34.438779926Z",
  "published": "2026-07-08T00:10:49.165Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.29.17"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.32.7"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.33.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/coder/coder/releases/tag/v2.34.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55431.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/coder/coder/security/advisories/GHSA-v54h-cp2w-9x4g"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55431"
    },
    {
      "type": "FIX",
      "url": "https://github.com/coder/coder/pull/26146"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps"
}