---
id: "CVE-2026-126308"
page: "https://infrastack.ai/live/CVE-2026-126308"
kind: "vulnerability"
aliases: ["CVE-2026-126308"]
title: "Coder dashboard leaks full API key to attacker-chosen app URLs"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "infrastructure"
products: []
ecosystems: []
tags: ["coder", "infrastructure", "self-hosted", "workspaces"]
not_affected_if: ["version-outside-affected-ranges"]
published_at: "2026-11-13T10:17:36+00:00"
first_seen_at: "2026-11-13T10:47:15+00:00"
updated_at: "2026-11-13T10:50:23+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126308", "first_seen_at": "2026-11-13T10:47:15+00:00"}]
exploit_sources: []
---

# Coder dashboard leaks full API key to attacker-chosen app URLs

Link for people: https://infrastack.ai/live/CVE-2026-126308 (this .md is for agents)

The Coder web dashboard substitutes a full-access API key into external app URLs without checking whether the app is a sub-agent. Code running in a workspace can register a disguised app, so when the owner clicks it their API key is sent to an attacker-chosen destination.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the Coder server version with `coder version` and compare it to the fixed ranges below.
- Confirm whether untrusted code can run in your workspaces, since that is what allows an app to be registered.

## Fix

- Coder `2.29.23` for the 2.24.x line
- Coder `2.34.14` for the 2.30.x line
- Coder `2.36.9` for the 2.35.x line
- Coder `2.37.6` for the 2.37.x line
- Coder `2.38.2` for the 2.38.x line

## Timeline

- 2026-11-13T10:47:15+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126308

## Documents

- [advisory] Vendor advisory: github.com https://github.com/coder/coder/security/advisories/GHSA-2x8w-q434-f76p
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/coder-2.38.0-before-2.38.2-session-token-leak-via-sub-agent-external-apps

## From the sources

The web dashboard in Coder 2.24.0 before 2.29.23, 2.30.0 before 2.34.14, 2.35.0 before 2.36.9, 2.37.0 before 2.37.6, and 2.38.0 before 2.38.2 replaces the $SESSION_TOKEN placeholder in external app URLs with a full-access API key without checking whether the app belongs to a sub-agent. Code running in a workspace can register a disguised sub-agent app with a custom protocol URL, so the owner's click sends their API key to an attacker-chosen destination.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
