GHSA-9rjw-3gwp-f59v: Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID
A vulnerability in Coder's workspace app upsert functionality allows users with elevated privileges (template authors or external provisioner operators) to rebind an app's agent across different workspaces by submitting a crafted payload with a victim app's UUID and an attacker-controlled agent ID. This causes the victim app's traffic to be proxied to the attacker's workspace. The issue arises because the system does not verify that the app ID belongs to the workspace being built during the upsert operation. The vulnerability is patched in versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17. No workarounds exist, so upgrading is required.
AI Analysis
Technical Summary
The vulnerability exists in the UpsertWorkspaceApp function, which overwrites an existing app's agent_id on primary-key conflict without verifying workspace ownership. The insertAgentApp function accepts an app ID from the CompleteJob payload without confirming it belongs to the workspace being built. Since CompleteJob runs with elevated authorization (dbauthz.AsProvisionerd), cross-workspace upsert is not blocked. An attacker with template author or external provisioner privileges can submit a CompleteJob payload containing a victim app UUID and attacker-controlled agent ID, causing the victim app's agent to be rebound to the attacker. This allows interception of app traffic such as IDE and terminal sessions. The fix enforces verification that the workspace_apps row matches the workspace being built, rejecting cross-workspace agent reassignment. The fix is backported to all supported release lines including 2.34.2, 2.33.8, 2.32.7, and 2.29.17.
Potential Impact
An attacker with elevated privileges (template author or external provisioner operator) can rebind a victim app's agent to their own agent by exploiting the upsert process, enabling interception and proxying of the victim's app traffic, including IDE and terminal sessions. This compromises confidentiality and integrity of the victim's workspace app communications. The vulnerability requires elevated privileges and knowledge of victim app UUIDs, which are discoverable via the public API.
Mitigation Recommendations
A fix is available and has been backported to all supported release lines: versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17. Upgrading to these versions or later is required to mitigate this vulnerability. No workarounds exist. Users should apply the official patches promptly.
GHSA-9rjw-3gwp-f59v: Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID
Description
A vulnerability in Coder's workspace app upsert functionality allows users with elevated privileges (template authors or external provisioner operators) to rebind an app's agent across different workspaces by submitting a crafted payload with a victim app's UUID and an attacker-controlled agent ID. This causes the victim app's traffic to be proxied to the attacker's workspace. The issue arises because the system does not verify that the app ID belongs to the workspace being built during the upsert operation. The vulnerability is patched in versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17. No workarounds exist, so upgrading is required.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the UpsertWorkspaceApp function, which overwrites an existing app's agent_id on primary-key conflict without verifying workspace ownership. The insertAgentApp function accepts an app ID from the CompleteJob payload without confirming it belongs to the workspace being built. Since CompleteJob runs with elevated authorization (dbauthz.AsProvisionerd), cross-workspace upsert is not blocked. An attacker with template author or external provisioner privileges can submit a CompleteJob payload containing a victim app UUID and attacker-controlled agent ID, causing the victim app's agent to be rebound to the attacker. This allows interception of app traffic such as IDE and terminal sessions. The fix enforces verification that the workspace_apps row matches the workspace being built, rejecting cross-workspace agent reassignment. The fix is backported to all supported release lines including 2.34.2, 2.33.8, 2.32.7, and 2.29.17.
Potential Impact
An attacker with elevated privileges (template author or external provisioner operator) can rebind a victim app's agent to their own agent by exploiting the upsert process, enabling interception and proxying of the victim's app traffic, including IDE and terminal sessions. This compromises confidentiality and integrity of the victim's workspace app communications. The vulnerability requires elevated privileges and knowledge of victim app UUIDs, which are discoverable via the public API.
Mitigation Recommendations
A fix is available and has been backported to all supported release lines: versions 2.34.2, 2.33.8, 2.32.7, and 2.29.17. Upgrading to these versions or later is required to mitigate this vulnerability. No workarounds exist. Users should apply the official patches promptly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-9rjw-3gwp-f59v
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-55429"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4c340327e9c797195f5f57
Added to database: 07/06/2026, 23:02:27 UTC
Last enriched: 07/06/2026, 23:13:00 UTC
Last updated: 07/06/2026, 23:13:00 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.