Privilege escalation in Coder via API key creation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Privilege escalation
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-266.
Summary
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 do not restrict new API keys to the creating token's scopes, allow list, or expiry. This is an Incorrect Privilege Assignment flaw (CWE-266) that lets a scoped API key or OAuth2 token with key-creation permission mint longer-lived coder:all keys and gain the user's full privileges. The attacker needs a valid token with key-creation permission and can exploit the flaw over the network.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| coder | coder | 2.38.0 to before 2.38.4 | 2.38.4 | Patch available | CNA |
| coder | coder | 2.37.0 to before 2.37.8 | 2.37.8 | Patch available | CNA |
| coder | coder | 2.36.0 to before 2.36.11 | 2.36.11 | Patch available | CNA |
| coder | coder | 2.30.0 to before 2.34.16 | 2.34.16 | Patch available | CNA |
| coder | coder | 2.28.0 to before 2.29.24 | 2.29.24 | Patch available | CNA |
| coder | coder | 2.35.0 to before 2.36.0 | 2.36.0 | Patch available | CNA |
- coder Vendorcoder Affected 2.38.0 to before 2.38.4 Fixed in 2.38.4 Patch available CNA
- coder Vendorcoder Affected 2.37.0 to before 2.37.8 Fixed in 2.37.8 Patch available CNA
- coder Vendorcoder Affected 2.36.0 to before 2.36.11 Fixed in 2.36.11 Patch available CNA
- coder Vendorcoder Affected 2.30.0 to before 2.34.16 Fixed in 2.34.16 Patch available CNA
- coder Vendorcoder Affected 2.28.0 to before 2.29.24 Fixed in 2.29.24 Patch available CNA
- coder Vendorcoder Affected 2.35.0 to before 2.36.0 Fixed in 2.36.0 Patch available CNA
Remediation
Upgrade Coder to 2.29.24, 2.34.16, 2.36.0, 2.36.11, 2.37.8, or 2.38.4, matching the release line in use. The sources list no fixed version for a product other than Coder.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA coder (coder) Fixed in 2.38.4
- Fix · CNA coder (coder) Fixed in 2.37.8
- Fix · CNA coder (coder) Fixed in 2.36.11
- Fix · CNA coder (coder) Fixed in 2.34.16
- Fix · CNA coder (coder) Fixed in 2.29.24
- Fix · CNA coder (coder) Fixed in 2.36.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
coder 2.36.0
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-91296 Improper authorization in Coder exposes workspace agent tokensPriority LOW 39
- TI-2026-91246 Coder web dashboard leaks API key via sub-agent external appsPriority LOW 37
- TI-2026-91298 Uncontrolled memory consumption in Coder Web Push deliveryPriority LOW 31
- Release ·
coder 2.29.24, 2.34.16 and 3 more versions
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-91296 Improper authorization in Coder exposes workspace agent tokensPriority LOW 39
- TI-2026-91298 Uncontrolled memory consumption in Coder Web Push deliveryPriority LOW 31
Timeline
- 2026-11-13 Threatist record created from CVE-2026-126404
- 2026-11-13 Alias added: GHSA-6r5h-82v7-hx9g
- 2026-11-13 CISA SSVC decision points changed
References
More coder vulnerabilities
- TI-2025-29799 code-server session cookie can be extracted by having user visit specially crafted proxy URL CVSS 3.1HIGH 8.3
- TI-2025-37344 AgentAPI exposed user chat history via a DNS rebinding attack CVSS 3.1MEDIUM 6.5
- TI-2026-92318 Workspace settings enable command execution in Coder VS Code extension CVSS 3.1HIGH 7.8
- TI-2026-34071 Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft CVSS 3.1CRITICAL 9.1
- TI-2026-32394 Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent CVSS 3.1HIGH 8.8
- TI-2026-27585 Code Extension Marketplace has a Zip Slip Path Traversal CVSS 4.0HIGH 8.7
Sources
- CVE-2026-126404 · CVE Program
- CVE-2026-126404 · NVD
- FIRST EPSS
- GHSA-6r5h-82v7-hx9g · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences