CVE-2026-126308Coder 2.38.0 before 2.38.2 Session Token Leak via Sub-Agent External Apps
The web dashboard in Coder 2.24.0 before 2.29.23, 2.30.0 before 2.34.14, 2.35.0 before 2.36.9, 2.37.0 before 2.37.6, and 2.38.0 before 2.38.2 replaces the $SESSION_TOKEN placeholder in external app URLs with a full-access API key without checking whether the app belongs to a sub-agent. Code running in a workspace can register a disguised sub-agent app with a custom protocol URL, so the owner's click sends their API key to an attacker-chosen destination.
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.2, 2.38.2 not affected; fixed in
2.38.2 - coder: affected: 2.37.0 to before 2.37.6, 2.37.6 not affected; fixed in
2.37.6 - coder: affected: 2.36.0 to before 2.36.9, 2.36.9 not affected; fixed in
2.36.9 - coder: affected: 2.30.0 to before 2.34.14, 2.34.14 not affected; fixed in
2.34.14 - coder: affected: 2.24.0 to before 2.29.23, 2.29.23 not affected; fixed in
2.29.23 - 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-2x8w-q434-f76p (vendor-advisory)
References
- https://github.com/coder/coder/security/advisories/GHSA-2x8w-q434-f76p
- https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.2-session-token-leak-via-sub-agent-external-apps
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.