CVE-2026-137546: Coder from 2.39.0 before 2.39.1 Session Token Leak via coder open app
Coder 2.29.17 before 2.29.27, 2.32.7 before 2.33.0, 2.33.8 before 2.34.0, 2.34.2 before 2.34.19, 2.35.0 before 2.37.11, 2.38.0 before 2.38.7, and 2.39.0 before 2.39.1 contains a credential exposure vulnerability that allows malicious template authors to steal session tokens because coder open app substitutes $SESSIONTOKEN into template-defined external app URLs without validating scheme or destination. Attackers can define an external app URL or IDE link pointing to an attacker server so users running coder open app leak their token, enabling impersonation of shared users or administrators.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.29.27 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.33.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.34.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.34.19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.37.11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.38.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.39.1
Event History
Frequently Asked Questions
Who is exposed to token theft?
Users who run "coder open app" against a workspace template containing a malicious external app URL or IDE link are exposed. Shared users and administrators are specifically at risk because a stolen session token can be used to impersonate them.
What does an attacker need to exploit this issue?
The attacker needs the ability to author or control a workspace template and define an external app URL or IDE link that points to an attacker-controlled server. They also need a user to run "coder open app" for the token substitution and leak to occur.
Which Coder releases need remediation?
Affected ranges are 2.29.17 through before 2.29.27, 2.32.7 through before 2.33.0, 2.33.8 through before 2.34.0, 2.34.2 through before 2.34.19, 2.35.0 through before 2.37.11, 2.38.0 through before 2.38.7, and 2.39.0 through before 2.39.1.
What can be done before upgrading?
Do not run "coder open app" for templates that have not been trusted or reviewed. Review template-defined external app URLs and IDE links, and remove or block entries that direct users to untrusted destinations.