Skip to content
Threat Brief

← All advisories

CVE-2026-59831

Medium 4.4No known exploitationFix available

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

Vendor advisory: GHSA-8cg3-r6g9-fpg2

Record last updated

CVSS score

4.4

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.3%

Higher than 18% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-829

Patching and mitigation

Patch status
Fix available (source: GitHub Advisory Database)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
clicli>= 2.10.0, < 2.96.0Not documentedCVE Program
gogithub.com/cli/cli/v2from 2.10.0 before 2.96.02.96.0GitHub Advisory Database

Timeline

  1. Disclosure

    CVE record published by GitHub_M

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by GitHub Advisory Database

    Source: GitHub Advisory Database (opens in a new tab)

Vendor guidance and references