{"id":"CVE-2026-55431","published":"2026-07-08T00:10:49Z","modified":"2026-07-08T13:57:02Z","title":"Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps","vendor":"coder","product":"coder","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.27706,"provenance":"source"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/coder/coder/security/advisories/GHSA-v54h-cp2w-9x4g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/coder/pull/26146","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.29.17","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.32.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.33.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/coder/releases/tag/v2.34.2","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":5.54},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"coder","affectedVersions":[{"vendor":"coder","product":"coder","versions":[">= 2.34.0, < 2.34.2",">= 2.33.0, < 2.33.8",">= 2.30.0, < 2.32.7","< 2.29.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-07-08T13:56:53.370657Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/coder/coder/v2","vulnerableRanges":[">=2.34.0, <2.34.2",">=2.33.0, <2.33.8",">=2.30.0, <2.32.7","<2.29.17"],"patched":["2.34.2","2.33.8","2.32.7","2.29.17"],"from":["GHSA-v54h-cp2w-9x4g","GO-2026-5924"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/coder/coder","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5924"],"provenance":"source"}],"summary":{"text":"The Coder CLI's coder open app command, which opens external workspace-app URLs, does not validate the URL scheme or host and substitutes the user's real session token for any $SESSION_TOKEN placeholder before passing the URL to the operating system's open handler. An attacker who controls an external app definition, which requires being a malicious template author, can cause the victim's session token to be sent to an attacker-chosen host if the victim runs coder open app against that workspace, and this requires user interaction and an authenticated session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:42Z"},"euvd":{"id":"EUVD-2026-42140","exploited":false,"provenance":"source"}}