CVE-2026-126403Coder 2.38.0 before 2.38.4 Authorization Bypass via External Agent Credentials Endpoint
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- coder: affected: 2.38.0 to before 2.38.4, 2.38.4 not affected; fixed in
2.38.4 - coder: affected: 2.37.0 to before 2.37.8, 2.37.8 not affected; fixed in
2.37.8 - coder: affected: 2.36.0 to before 2.36.11, 2.36.11 not affected; fixed in
2.36.11 - coder: affected: 2.30.0 to before 2.34.16, 2.34.16 not affected; fixed in
2.34.16 - coder: affected: 2.26.0 to before 2.29.24, 2.29.24 not affected; fixed in
2.29.24 - coder: affected: 2.35.0 to before 2.36.0, 2.36.0 not affected; fixed in
2.36.0
Vendor advisories:
- https://github.com/coder/coder/security/advisories/GHSA-9frj-7f83-x984 (vendor-advisory)
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.