Summary
CVE-2026-118687 is a missing audience validation flaw (CWE-441, confused deputy) in Coder, the self-hosted cloud development environment platform. Coder does not validate the audience claim of GCE instance-identity JWTs, so an attacker holding a valid identity token minted for another service can replay it to obtain workspace agent session tokens. It is rated 8.3 (High) under CVSS v4.0 and 6.5 (Medium) under CVSS v3.1.
Technical details
- Root cause: The
POST /api/v2/workspaceagents/google-instance-identityendpoint does not validate the audience (aud) claim of GCE instance-identity JWTs. - Trigger conditions: The attacker needs an unexpired
format=fullidentity token that was minted for another relying party. - Attack vector: Network. The attacker replays the token against the vulnerable endpoint. No privileges or user interaction are required.
- Impact: The attacker obtains the workspace agent’s session token. It remains valid until the workspace’s next build. This exposes confidentiality of the workspace agent session, with limited integrity impact.
Affected software
- Coder before 2.29.21
- Coder 2.30.0 up to but not including 2.34.12 (2.30.0–2.34.11)
- Coder 2.35.0 up to but not including 2.35.9 (2.35.0–2.35.8)
- Coder 2.36.0 up to but not including 2.36.7 (2.36.0–2.36.6)
- Coder 2.37.0 up to but not including 2.37.4 (2.37.0–2.37.3)
Severity
- CVSS v4.0: 8.3 (High). Vector:
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 6.5 (Medium). Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: Upgrade to a patched release for your release line: 2.29.21, 2.34.12, 2.35.9, 2.36.7, or 2.37.4.
- No workarounds are documented in the advisory. Patching is the recommended remediation.

