Vulnerability  ·  2026-10-30

Coder workspace agent GCE instance-identity JWT audience validation failure allows agent session-token replay

VulnerabilityMedium impactGlobal
CVE-2026-118687 (CVSS 6.5, CWE-441): Coder before 2.29.21, 2.30.0 < 2.34.12, 2.35.0 < 2.35.9, 2.36.0 < 2.36.7, and 2.37.0 < 2.37.4 does not validate the audience claim of GCE instance-identity JWTs at POST /api/v2/workspaceagents/google-instance-identity. An attacker who obtains an unexpired format=full identity token minted for another relying party can replay it to obtain that workspace agent's session token, which stays valid until the workspace's next build.
Coder hosts developer/agent workspaces (including AI coding environments); an unvalidated audience lets a token minted for a different service be replayed to impersonate a workspace agent and take over that workspace's session, exposing code and credentials inside it.
An attacker with an unexpired GCE instance-identity JWT minted for another relying party replays it to the endpoint to obtain a target workspace agent's session token.
Coder (github.com/coder/coder) before 2.29.21 / 2.34.12 / 2.35.9 / 2.36.7 / 2.37.4.
Upgrade Coder to a fixed release (2.29.21 / 2.34.12 / 2.35.9 / 2.36.7 / 2.37.4) per GHSA-24vh-q7rg-243w.
Coder security advisory GHSA-24vh-q7rg-243wVulnCheck advisory — Coder GCP instance identity
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →