Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Template/Org Admin with workspace read
-
DeliveryRequest external-agent credentials endpoint
-
ExploitReceive workspace agent token
-
ExecutionReplay token on agent-authenticated endpoints
-
ImpactRead owner Git SSH key and OAuth tokens, impersonate agent to hijack sessions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a Premium Coder deployment that uses external workspaces (a coder_external_agent resource in a template) - the vendor states only these are affected, so default/non-Premium and non-external-agent deployments are not exploitable. The attacker must be authenticated and hold a role that grants workspace read but not ssh: Template Admin, Organization Template Admin, Organization Admin, or the Owner role when --disable-owner-workspace-access is set; API tokens scoped to coder:workspaces.operate or coder:workspaces.create are equally affected. Limiting factors: the attacker needs one of these elevated roles (PR:H), no exploitation is possible without the external-agent feature, and users the workspace is shared with at 'use' or 'admin' level already hold ssh and are therefore unaffected by the flaw. Agent impersonation is most impactful while the external agent is offline, which is its normal state before installation. |
| Impact | This is a genuine but access-gated authorization flaw (CWE-863/CWE-200), not an inflated high-CVSS issue, though its real-world blast radius is narrower than a network-vector score suggests. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H) scores 8.5: remote and low-complexity, but PR:H correctly reflects that the attacker must already hold an elevated role (Template Admin, Organization Template Admin, Organization Admin, or an Owner with --disable-owner-workspace-access), or an API token scoped to coder:workspaces.operate/create. The vendor-reported priority is 'this_week' rather than emergency, and there is no CISA KEV listing and no EPSS score provided, so there is no signal of active or widespread exploitation. No public exploit code is identified in the input (the two references are the vendor GHSA advisory and a VulnCheck advisory, not a working PoC). The decisive limiter is scope: per the vendor, only Premium deployments that use external workspaces (a coder_external_agent resource in a template) are affected - most Coder deployments are not. Within an affected deployment the impact is high (theft of the owner's private Git SSH key and Git provider OAuth tokens, plus agent impersonation), so this is a real priority for Premium/external-agent operators but low-to-no concern for everyone else. Note the input Tags label this 'Authentication Bypass'; the CWE and advisories confirm it is an authorization (access-control) bypass by an already-authenticated user, not an authentication bypass. |
| Exploit ScenarioDerived | An authenticated user holding a Template Admin or Organization Admin role - who can view a victim's external workspace but is deliberately not permitted to ssh/connect to it - calls GET /api/v2/workspaces/{workspace}/external-agent/{agent}/credentials, which only checked for read access and returns the workspace agent token. The attacker then presents that token on agent-authenticated endpoints to read the owner's private Git SSH key and Git provider OAuth tokens, and impersonates the agent (normal while an external agent is offline) to receive the owner's sessions. No public exploit identified at time of analysis; the flaw requires an elevated account but is otherwise low-complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Improper authorization in Coder's external agent credentials endpoint lets authenticated users who hold only workspace read access - Template Admins, Organization Template Admins, Organization Admins, or the Owner role when --disable-owner-workspace-access is set - fetch the workspace agent token for someone else's external workspace, because the endpoint never checked the ssh permission. With that token they can read the owner's private Git SSH key, Git provider OAuth tokens and agent manifest, and impersonate the agent to receive the owner's sessions while it is offline. Only Premium deployments that use external workspaces (a coder_external_agent resource in a template) are exposed, the attacker must already hold one of these elevated roles, and no public exploit has been identified at time of analysis; the vendor has shipped fixed releases across all supported lines.
RemediationAI
Upgrade to the patched release on your line: v2.38.4 (mainline 2.38), v2.37.8 (stable 2.37), v2.36.11 (security support 2.36), v2.34.16 (ESR 2.34), or v2.29.24 (ESR 2.29); the fix is upstream PR https://github.com/coder/coder/pull/31388 and the advisory is https://github.com/coder/coder/security/advisories/GHSA-9frj-7f83-x984. Releases 2.26-2.28, 2.30-2.33 and 2.35 are end-of-life with no patch, so those deployments must upgrade to a patched supported line. Be aware of the intentional behavior change: after upgrading, Template Admins, Organization Template Admins and Organization Admins can no longer retrieve the install command for other users' external workspaces and will see an error in the install panel, and API tokens calling coder external-workspaces agent-instructions now need a scope that grants ssh, such as coder:workspaces.access. If upgrading must be deferred, the vendor's stated interim measures are to restrict the Template Admin, Organization Template Admin and Organization Admin roles to trusted users and to avoid templates that use the coder_external_agent resource; both reduce functionality or administrative delegation, and neither removes the exposure while an external-agent template remains available to those roles. Note also that roles able to update a template can still read agent tokens from that template's workspace build state via coder state pull, which the vendor describes as expected behavior.
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
The flaw is CWE-863 (incorrect authorization) with a CWE-200 information-exposure effect, located in the handler workspaceExternalAgentCredentials in enterprise/coderd/workspaceagents.go. That handler served GET /api/v2/workspaces/{workspace}/external-agent/{agent}/credentials, which returns the workspace agent's authentication token plus the command used to start an external agent, and it performed no authorization check of its own - the only gate was the load of the workspace object, which requires read. Comparable agent-level endpoints, such as the agent coordination endpoint, require ssh on the workspace, so the credential-issuing endpoint was strictly weaker than the operations the token unlocks. The token authenticates as the workspace agent, so holding it grants agent-authenticated API surface: the owner's private Git SSH key, the owner's external auth (Git provider OAuth) tokens, the agent manifest including template environment variables and startup scripts, and the ability to connect as the agent while the real agent is offline (the normal state of an external agent before installation) and receive the owner's sessions. The corrected handler now requires ssh on the workspace and answers 404 without it. The trigger path is fully described by the vendor: a verbose read of the credentials endpoint by a role lacking ssh. Coder is written in Go and distributed as the module go/github.com/coder/coder/v2, matching the cpe:2.3:a:coder:coder CPE entries; the affected code lives in the enterprise tree, which is why the vendor scopes impact to Premium deployments using external workspaces.
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:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Remote low-complexity call, but PR:H because an elevated Template/Org Admin role is required; C:H and I:H for SSH-key/OAuth-token theft and agent impersonation, A:N as no availability impact is described.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Coder 2.26.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 contains an improper authorization flaw in the external agent credentials endpoint, which returns the workspace agent token to users with only workspace read access rather than ssh permission. Authenticated users with roles such as Template Admin or Organization Admin can use the token to read the owner's private Git SSH key and Git provider OAuth tokens, and impersonate the agent to receive the owner's sessions.
Technical POC Analysis
CWE-863 (Incorrect Authorization), with the advisory also tagging CWE-200 for the data exposure it enables.
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-126403 is a high-severity authorization flaw in Coder's external agent credentials endpoint (CVSS 8.5) that allows authenticated users with elevated template or organization roles to steal workspace agent tokens and access sensitive credentials such as private Git SSH keys and OAuth tokens. This impacts only Premium deployments using external workspaces, but the ability to impersonate agents and receive owner sessions poses a significant risk to data confidentiality and workspace integrity. Leadership should prioritize patching given the high privilege level required and the absence of current exploitation.
Apply vendor patch.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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
Session-token leakage in Coder's `coder open app` CLI command lets a malicious template author steal the credentials of
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-125162
GHSA-2c36-2hm9-rjrf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB