github.com/cli/cli/v2 · V2: GitHub CLI gh codespace jupyter may allow code execution via unvalidated URLs from malicious Codespaces
Affects github.com/cli/cli/v2Source GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 4.4 Medium : upgrade to 2.96.0 when convenient.
Data as of 24 Nov 2026, 23:25 UTC
- Patch
- Available – fixed in 2.96.0
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade github.com/cli/cli/v2 to 2.96.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/cli/cli/v2 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade GitHub CLI to version 2.96.0 or later, which includes validation of the Jupyter server URL to prevent this issue. Additionally, exercise caution when using `gh codespace jupyter` with untrusted Codespaces by preferring Codespaces from trusted sources and default or pre-built devcontainers.
Description
A vulnerability in GitHub CLI versions from 2.10.0 up to but not including 2.96.0 allows remote code execution via the `gh codespace jupyter` command. The CLI opens a URL returned by a Codespace without validating it, enabling a malicious Codespace to supply a crafted vscode:// URL that triggers code execution on the user's workstation after a trust prompt. This issue was fixed in version 2.96.0 by restricting accepted URLs to loopback http and https addresses only.
References
- github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-59831 (opens in a new tab)
- github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0 (opens in a new tab)
- github.com/cli/cli (opens in a new tab)
- github.com/cli/cli/releases/tag/v2.96.0 (opens in a new tab)