CVE-2026-63443: Coder: Workspace agent API insecure redirect handling allowed cross-agent file read and write
Coder allows organizations to provision remote development environments via Terraform. Prior to 2.29.19, 2.32.9, 2.33.10, and 2.34.4, agentConn.apiClient() follows redirects while its custom transport accepts the host from the redirected request URL when the port is the workspace agent HTTP API port 4. An authenticated user who controls a modified workspace agent and knows another online agent's UUID can derive the victim's tailnet address and redirect control-plane requests to that agent. HTTP 301, 302, and 303 redirects can redirect read requests, while HTTP 307 and 308 preserve replayable write and process-start requests. The redirected workspace agent file APIs can read or write files as the victim workspace user, and affected versions exposing the workspace agent process API can execute commands after a redirected file write, crossing workspace and tenant boundaries. This issue is fixed in versions 2.29.19, 2.32.9, 2.33.10, and 2.34.4.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Coder workspace agentto a version that resolves this vulnerability.Fixed in 2.29.19 - Upgrade
Upgrade
Coder workspace agentto a version that resolves this vulnerability.Fixed in 2.32.9 - Upgrade
Upgrade
Coder workspace agentto a version that resolves this vulnerability.Fixed in 2.33.10 - Upgrade
Upgrade
Coder workspace agentto a version that resolves this vulnerability.Fixed in 2.34.4
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Coder user must control a modified workspace agent and know the UUID of another online workspace agent. Exploitation can cross workspace and tenant boundaries.
Which requests can be redirected, and what is the impact?
HTTP 301, 302, and 303 redirects can redirect read requests. HTTP 307 and 308 can preserve replayable write and process-start requests, enabling file reads or writes as the victim workspace user; versions exposing the workspace agent process API may permit command execution after a redirected file write.
Which versions contain the fix?
The issue is fixed in Coder versions 2.29.19, 2.32.9, 2.33.10, and 2.34.4.