CVE-2026-59831: GitHub CLI - Command Injection
- Cve: CVE-2026-59831
- Name: GitHub CLI - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the client by tricking the tool to open malicious URLs.
- Remediation: Update to version 2.96.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.4
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00326
- Epss percentile: 0.2621
- Assignee: [email protected]
- Published at: 2026-07-09T23:17:05Z
- Age in days: 138
- Modified at: 2026-07-14T02:16:57Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-59831
- Nvd status: awaiting_analysis
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere |
References
Same in every row:
- Source: nvd
- Tags:
| Url |
|---|
| https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0 |
| https://github.com/cli/cli/releases/tag/v2.96.0 |
| https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| github:cli | >= 2.10.0, < 2.96.0 | no | cna_alias_text | /v1/products/github/cli |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cli/cli | commit, fix, releases, security_advisory | yes | /v1/repositories/cli/cli |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts