Unsafe Dependency Resolution Affecting github.com/cli/cli/v2/internal/codespaces/rpc package, versions >=2.10.0 <2.96.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCLICLIV2INTERNALCODESPACESRPC-17937305
  • published10 Jul 2026
  • disclosed10 Jul 2026
  • credititsgaldoron

Introduced: 10 Jul 2026

CVE-2026-59831  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade github.com/cli/cli/v2/internal/codespaces/rpc to version 2.96.0 or higher.

Overview

Affected versions of this package are vulnerable to Unsafe Dependency Resolution when the gh codespace jupyter process opens a JupyterLab URL supplied by a process inside a Codespace without validating that it is a loopback HTTP or HTTPS address. An attacker can execute arbitrary commands on the user's system by providing a crafted vscode:// or vscode-insiders:// URL, which is then handed to VS Code.

CVSS Base Scores

version 4.0
version 3.1