Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
Published: 07/06/2026 (07/06/2026, 21:52:31 UTC)
Source: GCVE Database
Product: github.com/coder/coder/v2

Description

A vulnerability in Coder's workspace agent API allows a malicious workspace agent to redirect API requests to another agent on the tailnet, enabling unauthorized file read and write operations. Authenticated users controlling a modified agent can exploit this to access or modify files of other workspace users and potentially execute commands by chaining file writes with process-start requests. The issue arises from insecure handling of HTTP redirects and improper validation of the target host in API requests. The vulnerability affects multiple release lines prior to patched versions. No workarounds exist; upgrading to fixed versions is required.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

Affected software

Goghsa
github.com/coder/coder/v2
Affected versions
>=2.34.0 <2.34.4
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.33.0 <2.33.10
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.30.0 <2.32.9
Goghsa
github.com/coder/coder/v2
Affected versions
>=2.27.0 <2.29.19

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 23:05:58 UTC

Technical Analysis

The vulnerability stems from the workspace agent API client using the default HTTP client redirect behavior while dialing hosts based on the request URL's host if the port matches the workspace agent API port. Because agent tailnet IPs are deterministic from agent UUIDs, a malicious agent can craft redirects to another agent's tailnet IP, causing the client to send follow-up API requests to a victim agent instead of the intended one. Redirects that preserve method and body (HTTP 307, 308) enable replay of write and process-start requests, allowing cross-agent file read, write, and command execution as the victim workspace user. The fix disables automatic redirect following and enforces that API requests are only dialed to the intended agent's deterministic tailnet address, rejecting requests with mismatched hosts.

Potential Impact

An authenticated user with control over a modified workspace agent can redirect API requests to other agents on the tailnet, enabling unauthorized reading and writing of files as the victim workspace user. In versions exposing the process API, this can be escalated to command execution under the victim's user context, crossing workspace and tenant boundaries. This results in high confidentiality and integrity impact, with limited availability impact.

Mitigation Recommendations

Upgrading to the patched versions is required as no workarounds exist. The fix is included in versions 2.34.4, 2.33.10, 2.32.9, and 2.29.19 and later. The fix disables automatic HTTP redirect following for workspace agent API clients and enforces strict host validation to prevent redirect-based attacks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-qrwj-vh9x-gw5v
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["Go"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a4c33f027e9c797195ec89b

Added to database: 07/06/2026, 23:02:08 UTC

Last enriched: 07/06/2026, 23:05:58 UTC

Last updated: 07/07/2026, 03:48:34 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses