# CVE-2026-59831: GitHub CLI \`gh codespace jupyter\` could allow remote code execution when connecting to a malicious Codespace

- Priority: **Routine**
- Reason: Not severe (CVSS 4.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-09 · Modified: 2026-07-14
- Aliases: UBUNTU-CVE-2026-59831, DEBIAN-CVE-2026-59831, GHSA-8cg3-r6g9-fpg2, GO-2026-7034
- Record: https://cvemate.com/vulnerability/CVE-2026-59831 · JSON: https://cvemate.com/vulnerability/CVE-2026-59831/json

## Description

```text
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.
```

## Signals

- CVSS: 4.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.259%, percentile 18.741%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- cli cli: ≥ 2.10.0, \< 2.96.0
- debian gh (Debian): All versions (No fix recorded)
- ubuntu gh (Ubuntu): All versions (No fix recorded)
- github.com/cli/cli v2 (Go): ≥ 2.10.0, \< 2.96.0

## References

- <https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2>
- <https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0>
- <https://github.com/cli/cli/releases/tag/v2.96.0>
- <https://ubuntu.com/security/CVE-2026-59831>
- <https://www.cve.org/CVERecord?id=CVE-2026-59831>
- <https://security-tracker.debian.org/tracker/CVE-2026-59831>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59831>
- <https://github.com/cli/cli>

---

Data as of 2026-12-05T08:28:45.032Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
