Read the docs

Improper authorization in Coder exposes workspace agent tokens

Priority LOW 39CWE-863Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.

Summary

Coder versions from 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 are affected. The external agent credentials endpoint returns the workspace agent token to users with only workspace read access rather than SSH permission, an incorrect authorization flaw (CWE-863). An authenticated user with a role 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 to impersonate the agent to receive the owner's sessions.

Written with Claude Haiku 5.5 from the sources below · 2026-11-13

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00348 28th 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.26.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.26.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.38.4, 2.37.8, 2.36.11, 2.34.16, or 2.29.24, depending on the release line in use.

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-91246 Coder web dashboard leaks API key via sub-agent external appsPriority LOW 37
    • TI-2026-91297 Privilege escalation in Coder via API key creationPriority LOW 35
    • 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-91297 Privilege escalation in Coder via API key creationPriority LOW 35
    • TI-2026-91298 Uncontrolled memory consumption in Coder Web Push deliveryPriority LOW 31

Timeline

  1. 2026-11-13 Threatist record created from CVE-2026-126403
  2. 2026-11-13 Alias added: GHSA-2c36-2hm9-rjrf
  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