CVE-2026-126308
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 $SES…
Impact
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.
An attacker can exploit this over the network, with a regular user account, but a user has to be involved, for example by viewing content. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed.
Affected products · Coder
| Product | Affected versions |
|---|---|
| Coder | from 2.38.0 before 2.38.2 from 2.37.0 before 2.37.6 from 2.36.0 before 2.36.9 from 2.30.0 before 2.34.14 from 2.24.0 before 2.29.23 from 2.35.0 before 2.36.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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
- https://github.com/advisories/GHSA-h95g-897g-9949
- https://nvd.nist.gov/vuln/detail/CVE-2026-126308