Skip to main content
← All vulnerabilities
CVE-2026-59831

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.96.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cli cli

    From 2.10.0 · fixed in 2.96.0

References 3

GitHub · cli/cli