# CVE-2026-137546: Coder from 2.39.0 before 2.39.1 Session Token Leak via coder open app


- **Severity:** High 8.4 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Fix available:** No
- **Published:** 26 Nov 2026
- **Updated:** 26 Nov 2026
- **Also known as:** GHSA-6g9g-vmp7-r45p, GHSA-gr46-5h5x-92fm

## What is CVE-2026-137546?

CVE-2026-137546 is a high-severity vulnerability in coder, published on 26 Nov 2026. 

### Official description

Coder 2.29.17 before 2.29.27, 2.32.7 before 2.33.0, 2.33.8 before 2.34.0, 2.34.2 before 2.34.19, 2.35.0 before 2.37.11, 2.38.0 before 2.38.7, and 2.39.0 before 2.39.1 contains a credential exposure vulnerability that allows malicious template authors to steal session tokens because coder open app substitutes $SESSION_TOKEN into template-defined external app URLs without validating scheme or destination. Attackers can define an external app URL or IDE link pointing to an attacker server so users running coder open app leak their token, enabling impersonation of shared users or administrators.

Weakness: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)

## Which versions are affected by CVE-2026-137546?

7 open source packages ship an affected version, including github.com/coder/coder/v2.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.29.17 | 2.29.27 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.32.7 | 2.33.0 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.33.8 | 2.34.0 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.34.2 | 2.34.19 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.35.0 | 2.37.11 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.38.0 | 2.38.7 |
| `github.com/coder/coder/v2` | Go | `pkg:golang/github.com/coder/coder/v2` | From 2.39.0 | 2.39.1 |

## How do I fix CVE-2026-137546?

Upgrade github.com/coder/coder/v2 to a fixed version for your release line: 2.39.1, 2.38.7, 2.37.11 or 2.34.19.

## Is CVE-2026-137546 being exploited?

There is no known exploitation of CVE-2026-137546 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-137546 and fix it if it is affected.

What it is: CVE-2026-137546 is a high-severity vulnerability in coder, published on 26 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-137546 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/coder/coder/v2 (Go): affected from 2.29.17; fixed in 2.29.27
- github.com/coder/coder/v2 (Go): affected from 2.32.7; fixed in 2.33.0
- github.com/coder/coder/v2 (Go): affected from 2.33.8; fixed in 2.34.0
- github.com/coder/coder/v2 (Go): affected from 2.34.2; fixed in 2.34.19
- github.com/coder/coder/v2 (Go): affected from 2.35.0; fixed in 2.37.11
- github.com/coder/coder/v2 (Go): affected from 2.38.0; fixed in 2.38.7
- github.com/coder/coder/v2 (Go): affected from 2.39.0; fixed in 2.39.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-137546/ (Markdown: https://insights.sbomify.com/CVE-2026-137546/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-137546
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-137546
- OSV: https://osv.dev/vulnerability/CVE-2026-137546

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-137546/
Summaries are generated and may contain mistakes; the official description above is the record.
