Read the docs

Privilege escalation in Coder via API key creation

Priority LOW 35CWE-266Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00283 21st percentileScored 2026-11-16
Fix Fixed coder (coder): 2.38.4, 2.37.8, 2.36.11 +3

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

VendorProductAffected versionsFixed inStatusSource
codercoder2.38.0 to before 2.38.42.38.4Patch availableCNA
codercoder2.37.0 to before 2.37.82.37.8Patch availableCNA
codercoder2.36.0 to before 2.36.112.36.11Patch availableCNA
codercoder2.30.0 to before 2.34.162.34.16Patch availableCNA
codercoder2.28.0 to before 2.29.242.29.24Patch availableCNA
codercoder2.35.0 to before 2.36.02.36.0Patch availableCNA
  • 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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:coder:coder:*:*:*:*:*:*:*:*——coder
  • cpe:2.3:a:coder:coder:*:*:*:*:*:*:*:* Versions — — ·coder

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

  1. 2026-11-13 Threatist record created from CVE-2026-126404
  2. 2026-11-13 Alias added: GHSA-6r5h-82v7-hx9g
  3. 2026-11-13 CISA SSVC decision points changed

References

  • 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
See all 47 →

Sources