Skip to main content
CVE-2026-59831VulnerabilityPublished

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

0
Compare

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

CVSS 3.1 base score
4.4Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gogithub.com/cli/cli/v2Affected
  • >=2.10.0 <2.96.0
Fixed in
  • 2.96.0

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

Community reviews

Loading reviews…