Skip to content
OpenAdvisories
Medium · 4.4 CVE-2026-59831 EUVD-2026-42741

GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace

Published Jul 9, 2026 · Updated Jul 14, 2026 · Assigned by GitHub_M

Description

GitHub CLI (gh) is GitHub’s official command line tool. From 2.10.0 through 2.95.0, connecting to a malicious Codespace with gh codespace jupyter can allow command execution because the command opens a JupyterLab URL supplied by a process inside the Codespace without validating that it is a loopback HTTP or HTTPS address, allowing a crafted vscode:// or vscode-insiders:// URL to be handed to VS Code. This issue is fixed in version 2.96.0.

Affected products

VendorProductAffectedFixed
cli cli >= 2.10.0, < 2.96.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 gh No fix yet —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gh No fix yet —
Ubuntu 22.04 LTS gh No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gh No fix yet —
Ubuntu Pro 24.04 LTS gh No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gh 2.102.0-1.1 openSUSE-SU-2026:12163-1
openSUSE Leap 16.0 gh 2.102.0-bp160.1.1 openSUSE-SU-2026:22134-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.62.0-20 —

Advisories 2

References