CVE-2026-59831
Medium 4.4No known exploitationFix availableGitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace
Vendor advisory: GHSA-8cg3-r6g9-fpg2
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 18% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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.
Weakness: CWE-829
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| cli | cli | >= 2.10.0, < 2.96.0 | Not documented | CVE Program |
| go | github.com/cli/cli/v2 | from 2.10.0 before 2.96.0 | 2.96.0 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-8cg3-r6g9-fpg2 (opens in a new tab)github-advisory
- https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0 (opens in a new tab)x_refsource_misc
- https://github.com/cli/cli/releases/tag/v2.96.0 (opens in a new tab)x_refsource_misc
- https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2 (opens in a new tab)x_refsource_confirm