Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/coder/coder/v2
  4. ›
  5. GHSA-qrwj-vh9x-gw5v

GHSA-qrwj-vh9x-gw5v: Coder's workspace agent API insecure redirect handling allowed cross-agent file read and write

July 6, 2026

agentConn.apiClient() used the default redirect behavior of http.Client while its custom transport dialed the host from the request URL as long as the port was the workspace agent HTTP API port (4). Agent tailnet IPs are deterministic from agent UUIDs, so a malicious workspace agent could return a redirect to another agent’s tailnet IP and cause the control-plane client to send the follow-up workspace agent API request to the victim agent instead of the intended agent.

Redirects that preserve the method and body, such as HTTP 307 and 308, allow replay of write and process-start requests. HTTP 301, 302 and 303 redirects only convert POST requests to GET requests, so they are sufficient to demonstrate redirected reads but not write or command-execution primitives.

References

  • github.com/advisories/GHSA-qrwj-vh9x-gw5v
  • github.com/coder/coder/pull/26600
  • github.com/coder/coder/security/advisories/GHSA-qrwj-vh9x-gw5v

Code Behaviors & Features

Detect and mitigate GHSA-qrwj-vh9x-gw5v with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.27.0 before 2.29.19, all versions starting from 2.30.0 before 2.32.9, all versions starting from 2.33.0 before 2.33.10, all versions starting from 2.34.0 before 2.34.4

Fixed versions

  • 2.29.19
  • 2.32.9
  • 2.33.10
  • 2.34.4

Solution

Upgrade to versions 2.29.19, 2.32.9, 2.33.10, 2.34.4 or above.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

go/github.com/coder/coder/v2/GHSA-qrwj-vh9x-gw5v.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 13 Jul 2026 00:19:16 +0000.