# CVE-2026-126403: Coder 2.38.0 before 2.38.4 Authorization Bypass via External Agent Credentials Endpoint

- Priority: **Routine**
- Reason: Not severe (CVSS 8.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-13 · Modified: 2026-11-13
- Aliases: CGA-4vqm-g47p-9m85, CGA-5cwh-j892-gp8j, CGA-g32m-97q9-qxf6, CGA-mmx8-c6m9-x75j
- Record: https://cvemate.com/vulnerability/CVE-2026-126403 · JSON: https://cvemate.com/vulnerability/CVE-2026-126403/json

## Description

```text
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.
```

## Signals

- CVSS: 8.5 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.348%, percentile 30.388%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard coder-2.32 (Chainguard): All versions (No fix recorded)
- chainguard coder-2.33 (Chainguard): All versions (No fix recorded)
- coder coder: ≥ 2.38.0, \< 2.38.4 \| ≥ 2.37.0, \< 2.37.8 \| ≥ 2.36.0, \< 2.36.11 \| ≥ 2.30.0, \< 2.34.16 \| ≥ 2.26.0, \< 2.29.24 \| ≥ 2.35.0, \< 2.36.0

## References

- <https://github.com/coder/coder/security/advisories/GHSA-9frj-7f83-x984>
- <https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.4-authorization-bypass-via-external-agent-credentials-endpoint>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126403.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-126403>

---

Data as of 2026-12-05T14:38:49.657Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
