Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain scoped key-creation token
-
ExploitCall POST /keys/tokens without scopes
-
ExecutionCoder mints default coder:all key
-
ImpactExercise full user (or Owner) privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
|
| Exploitation Conditions | Exploitation requires the attacker to already possess one of: (1) a scoped API key or OAuth2 access token that was explicitly granted a key-creation scope such as coder:apikeys.manage_self, api_key:create, or api_key:*; or (2) a coder:all key with a restricted allow list. The attacker then calls POST /api/v2/users/{user}/keys/tokens or POST /api/v2/users/{user}/keys (or abuses the application auth redirect or an /oauth2/authorize grant from a restricted session). Limiting factors: full-access sessions with coder:all scope and an unrestricted allow list - including normal browser logins - are explicitly NOT affected because they already hold full access, so this only matters where scoped tokens/allow lists/expiry are used as a control (e.g. CI or third-party integrations). Version-dependent limit: scope escalation only applies on v2.31.7 and later (where scoped tokens can reach the key-creation endpoints); on earlier affected versions including the 2.29 line, only allow-list and expiry escalation is possible. The CVSS AC:H/AT:P reflect these preconditions; the supplied sources do not describe any timing or race condition. |
| Impact | This is a genuine but conditional privilege-escalation issue (CWE-266), not a drop-everything emergency. The CVSS 4.0 base score is 7.6 with vector AV:N/AC:H/AT:P/PR:L/UI:N and high confidentiality/integrity impact (VC:H/VI:H) but no availability impact and no scope/subsequent-system impact (SC:N/SI:N/SA:N). The signals are consistent rather than conflicting: PR:L plus AC:H and AT:P correctly reflect that the attacker must already hold a specifically scoped API key or OAuth2 token that was granted key-creation permission - so this is a bypass of a damage-limiting control (scoped tokens/allow lists/expiry for CI systems and third-party integrations) rather than a path to initial access. No EPSS score was supplied, the CVE is not listed in CISA KEV, and no verified working exploit code is present in the inputs; the only non-advisory signals are the GHSA and VulnCheck advisories and a vuln.today priority label of 'this_week'. Net: a real, prioritize-this-week issue for environments that issue scoped Coder tokens to automation or integrations, but of limited concern where only full-access browser/coder:all sessions exist (those are explicitly not affected because they already hold full access). No KEV or EPSS data was provided, so widespread opportunistic exploitation cannot be confirmed or ruled out from the available signals. |
| Exploit ScenarioDerived | An operator issues a narrowly scoped Coder API key or OAuth2 token (e.g. user:read plus coder:apikeys.manage_self) to a CI pipeline or third-party integration as a damage-limiting control. The holder of that token calls POST /api/v2/users/{user}/keys/tokens without specifying scopes, and Coder mints a new key that defaults to coder:all with an unrestricted allow list and longer expiry, giving the token the user's full privileges (and, if the user is an Owner, the ability to mint full-access keys for other users). No public working exploit code is identified at time of analysis, though VulnCheck and the vendor GHSA advisory document the mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Privilege escalation in Coder's API key issuance allows a narrowly scoped API key or OAuth2 access token that holds key-creation permission to mint a new key that is broader than itself - defaulting to coder:all when no scopes are requested - thereby gaining the full privileges of the token's user. This affects self-hosted Coder deployments in the 2.28, 2.30-2.34, 2.35, 2.36, 2.37 and 2.38 lines up to the patched releases; exploitation requires the attacker to already be authenticated and to hold a token explicitly granted a key-creation scope (coder:apikeys.manage_self, api_key:create, or api_key:*) or a coder:all key with a restricted allow list, while normal coder:all-with-unrestricted-allow-list sessions including browser logins are not affected. Scope escalation only applies from v2.31.7 onward; on earlier affected versions including 2.29 only allow-list and expiry escalation is possible. Vendor patches are available for the supported lines and no public exploit has been identified at time of analysis.
RemediationAI
Upgrade to the vendor-patched build for your release line: v2.38.4 (2.38 mainline), v2.37.8 (2.37 stable), v2.36.11 (2.36 security support), v2.34.16 (2.34 ESR) or v2.29.24 (2.29 ESR), all linked from https://github.com/coder/coder/security/advisories/GHSA-x3gf-xv6p-56hf; the upstream fix is PR https://github.com/coder/coder/pull/30256. Users on the end-of-life lines 2.28, 2.30-2.33 and 2.35 have no patch path and must upgrade to a supported release. Note this is a behavior change: clients that previously used a scoped token to create keys without specifying scopes received coder:all keys and will now receive keys limited to the creating token's scopes, so validate CI and integration flows after upgrading. Where upgrading is not immediately possible, apply the vendor workarounds: do not grant coder:apikeys.manage_self, api_key:create, api_key:* or other key-creation scopes to scoped API keys or OAuth2 applications (side effect: those integrations lose the ability to mint keys programmatically and must be re-credentialed another way); treat any coder:all key with a restricted allow list as a full-access credential (side effect: allow-list isolation can no longer be relied on as a control); and revoke existing tokens and OAuth2 grants that hold key-creation scopes and audit API keys they created for unexpected coder:all scope or extended expiry. Patching is the only complete fix, since revocation alone does not close the creation path for tokens that retain key-management permission.
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 development-environment platform written in Go (package go/github.com/coder/coder/v2) that exposes a REST API for provisioning workspaces, users and credentials. API keys and OAuth2 access tokens can be constrained by three damage-limiting controls: scopes (permission strings such as user:read or coder:apikeys.manage_self), an allow list (network/source restrictions), and an expiry. The flaw is CWE-266 (Incorrect Privilege Assignment): the key-creation handlers did not propagate the creating token's constraints to the newly issued credential, so a request to POST /api/v2/users/{user}/keys/tokens or POST /api/v2/users/{user}/keys that omitted scopes produced a coder:all key, and a restricted allow list or short expiry was likewise not inherited. The same gap applied to keys minted via the application auth redirect and to OAuth2 authorization requests made from a restricted session through /oauth2/authorize. Because a token with key-creation permission could escalate to a key with the user's full rights - and, if that user was an Owner, mint full-access keys for other users - scopes, allow lists and OAuth2 grants used to contain CI systems or third-party integrations were not an effective boundary. The trigger is a legitimate API call to the key-creation endpoints using a token that already carries key-management permission; the supplied sources describe no timing, race or memory-corruption mechanism, and the assessed AC:H/AT:P reflect the privilege and configuration preconditions rather than any attacker-uncontrolled technical race. The fix causes new keys to inherit the creating key's scopes and allow list when none are requested, rejects over-broad requests with HTTP 403, caps the new key's expiry at the creator's expiry, and makes /oauth2/authorize return invalid_scope when the requested grant exceeds the session or the session's allow list is restricted.
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:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network endpoint but attacker must already hold a specifically key-creation-scoped token (PR:L) with preconditions on scope/version (AC:H); full key compromise gives high C/I, no availability or cross-system impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Coder 2.28.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 does not restrict new API keys to the creating token's scopes, allow list, or expiry. A scoped API key or OAuth2 token holding key-creation permission can call POST /api/v2/users/{user}/keys/tokens to mint longer-lived coder:all keys, gaining the user's full privileges.
Technical POC Analysis
CWE-266 (Incorrect Privilege Assignment).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Coder's API key issuance privilege escalation vulnerability (CVE-2026-126404) enables authenticated users with narrowly scoped API keys to mint broader-privilege keys, potentially granting full account access. This impacts self-hosted deployments across multiple version lines and could allow lateral movement or unauthorized actions within the Coder environment. Leadership should prioritize patching to prevent privilege misuse and maintain trust in access controls.
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
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
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
EUVD-2026-125161
GHSA-6r5h-82v7-hx9g
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB