Public vulnerability disclosure

CVE-2026-126308

Coder 2.38.0 before 2.38.2 Session Token Leak via Sub-Agent External Apps

publishedCWE-201

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.

Technical severity8.7 highCVSS 4.0 · CNA: VulnCheck
Published2026-11-13Source updated 2026-11-13
Collected2026-11-131 attributed source

Fixes and workarounds

No remediation reported in collected sources.

Missing remediation information is not evidence that no patch exists.

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
coder
coder
github.com/coder/coder/v2
golang
≥ 2.38.0; < 2.38.2 (affected, semver)
2.38.2 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
coder
coder
github.com/coder/coder/v2
golang
≥ 2.37.0; < 2.37.6 (affected, semver)
2.37.6 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
coder
coder
github.com/coder/coder/v2
golang
≥ 2.36.0; < 2.36.9 (affected, semver)
2.36.9 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
coder
coder
github.com/coder/coder/v2
golang
≥ 2.30.0; < 2.34.14 (affected, semver)
2.34.14 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
coder
coder
github.com/coder/coder/v2
golang
≥ 2.24.0; < 2.29.23 (affected, semver)
2.29.23 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
coder
coder
github.com/coder/coder/v2
golang
≥ 2.35.0; < 2.36.0 (affected, semver)
2.36.0 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 8.7
high
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:NCNA: VulnCheck
3.1 / 7.7
high
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NCNA: VulnCheck

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide