# CVE-2026-55431: Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-07-06T21:07:40.000Z
- Modified: 2026-07-08T19:42:45.880Z
- Also known as: GHSA-v54h-cp2w-9x4g, GO-2026-5924
- Weaknesses: CWE-522, CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- coder coder: >= 2.34.0, < 2.34.2; >= 2.33.0, < 2.33.8; >= 2.30.0, < 2.32.7; < 2.29.17; before 2.29.17; from 2.30.0 before 2.32.7; from 2.33.0 before 2.33.8; from 2.34.0 before 2.34.2
- github.com/coder/coder/v2 (Go): from 2.34.0 before 2.34.2; from 2.33.0 before 2.33.8; from 2.30.0 before 2.32.7; before 2.29.17
- github.com/coder/coder (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/coder/coder/security/advisories/GHSA-v54h-cp2w-9x4g> (advisory, patch, vendor-advisory, web)
- <https://github.com/coder/coder/pull/26146> (fix, issue-tracking, patch, web)
- <https://github.com/coder/coder/releases/tag/v2.29.17> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.32.7> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.33.8> (release-notes)
- <https://github.com/coder/coder/releases/tag/v2.34.2> (release-notes)
- <https://github.com/coder/coder> (package)

## Sources

- CVE List: [CVE-2026-55431](https://www.cve.org/CVERecord?id=CVE-2026-55431), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-v54h-cp2w-9x4g](https://github.com/advisories/GHSA-v54h-cp2w-9x4g), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5924](https://pkg.go.dev/vuln/GO-2026-5924), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-55431](https://nvd.nist.gov/vuln/detail/CVE-2026-55431), Public domain, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-55431 · Whole record: https://cve.day/CVE-2026-55431.json · Rebuilt by cve.day 2026-11-25T22:59:27.335Z
