Skip to main content

Coder EUVDEUVD-2026-125161

| CVE-2026-126404 HIGH
Incorrect Privilege Assignment (CWE-266)
2026-11-13 VulnCheck GHSA-6r5h-82v7-hx9g
7.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain scoped key-creation token
  2. Exploit
    Call POST /keys/tokens without scopes
  3. Execution
    Coder mints default coder:all key
  4. Impact
    Exercise 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

coder 2.38.0 <2.38.4
coder 2.37.0 <2.37.8
coder 2.30.0 <2.34.16
coder 2.28.0 <2.29.24
coder 2.36.0 <2.36.11
coder 2.35.0 <2.36.0

Affected Packages

euvd coder fix: 2.29.24, 2.34.16, 2.36.0, 2.36.11, 2.37.8, 2.38.4

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

Vendor (VulnCheck) PRIMARY 7.6 HIGH
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
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 10:02 EUVD
CVE Published
Nov 13, 2026 - 09:35 cve.org
HIGH 7.6

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
self-hosted developer cloud-IDE platform, common in enterprise dev teams but not ubiquitous
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Coder

View all
CVE-2025-58437 HIGH POC
8.1 Sep 06

Coder allows organizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.1), t

CVE-2025-66411 HIGH POC
7.8 Dec 03

Coder allows organizations to provision remote development environments via Terraform. Prior to 2.26.5, 2.27.7, and 2.28

CVE-2021-3810 HIGH POC
7.5 Sep 17

code-server is vulnerable to Inefficient Regular Expression Complexity. Rated high severity (CVSS 7.5), this vulnerabili

CVE-2023-26114 CRITICAL
9.3 Mar 23

Versions of the package code-server before 4.10.1 are vulnerable to Missing Origin Validation in WebSockets handshakes.

CVE-2026-137547 CRITICAL
9.2 Nov 26

Coder deployments configured with AWS IAM database authentication (CODER_PG_AUTH=awsiamrds) can leak a short-lived Postg

CVE-2026-126308 HIGH
8.7 Nov 13

Credential disclosure in Coder's web dashboard (CVSS 4.0 base 8.7, High) lets an authenticated low-privileged attacker w

CVE-2026-111927 HIGH
8.7 Oct 17

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

CVE-2026-126403 HIGH
8.5 Nov 13

Improper authorization in Coder's external agent credentials endpoint lets authenticated users who hold only workspace r

CVE-2026-137546 HIGH
8.4 Nov 26

Session-token leakage in Coder's `coder open app` CLI command lets a malicious template author steal the credentials of

CVE-2026-63443 HIGH
8.3 Sep 15

Authenticated Coder users who control a modified workspace agent can redirect the control plane's workspace-agent API re

CVE-2026-118687 HIGH
8.3 Oct 28

Coder deployments that run workspace agents on Google Compute Engine with GCP instance-identity authentication accept re

CVE-2024-27918 HIGH
8.2 Mar 21

Coder allows oragnizations to provision remote development environments via Terraform. Rated high severity (CVSS 8.2), t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy