CVE-2026-59831: GitHub CLI (gh) is GitHub’s official command line tool
Affects ghSource GCVE Database
Not known to be exploited · CVSS 4.4 Medium · fixed in 2.96.0 : update gh when convenient.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- 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 9 Jul 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 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ghpkg:deb/ubuntu/gh?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSghpkg:deb/ubuntu/gh?arch=source&distro=esm-apps/resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSghpkg:deb/ubuntu/gh?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSghpkg:deb/ubuntu/gh?arch=source&distro=jammyOther threats | 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 (gh) to version 2.96.0 or later, where this vulnerability is fixed. No other mitigations are specifically recommended by the vendor advisory.
Description
GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain a vulnerability in the 'gh codespace jupyter' command. This command opens a JupyterLab URL from inside the Codespace without validating that the URL is a loopback HTTP or HTTPS address. An attacker can craft vscode:// or vscode-insiders:// URLs that may be passed to VS Code, potentially enabling command execution. The issue is fixed in version 2.96.0.
References
- ubuntu.com/security/CVE-2026-59831 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-59831 (opens in a new tab)
- github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2 (opens in a new tab)
- github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0 (opens in a new tab)
- github.com/cli/cli/releases/tag/v2.96.0 (opens in a new tab)