Coder
Coder 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.38.0, < 2.38.2
Fixed in 2.38.2
- >= 2.37.0, < 2.37.6
Fixed in 2.37.6
- >= 2.36.0, < 2.36.9
Fixed in 2.36.9
- >= 2.30.0, < 2.34.14
Fixed in 2.34.14
- >= 2.24.0, < 2.29.23
Fixed in 2.29.23
- >= 2.35.0, < 2.36.0
Fixed in 2.36.0
Mitigation
Upgrade coder to 2.38.2 or later.
Upgrade coder to 2.37.6 or later.
Upgrade coder to 2.36.9 or later.
Upgrade coder to 2.34.14 or later.
Upgrade coder to 2.29.23 or later.
Upgrade coder to 2.36.0 or later.
References
- Vendor advisory github.com/coder/coder/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.