UBUNTU-CVE-2026-59831
GitHub CLI (gh) versions from 2.10.0 through 2.95.0 contain a vulnerability in the 'gh codespace jupyter' command. This command opens a JupyterLab URL supplied by a process inside the Codespace without validating that the URL is a loopback HTTP or HTTPS address. This flaw allows a crafted vscode:// or vscode-insiders:// URL to be passed to VS Code, potentially enabling command execution. The issue is fixed in version 2.96.0.
AI Analysis
Technical Summary
The GitHub CLI (gh) tool, versions 2.10.0 through 2.95.0, has a vulnerability in the 'gh codespace jupyter' command. When connecting to a malicious Codespace, the command opens a JupyterLab URL provided by a process inside the Codespace without validating that it is a loopback HTTP or HTTPS address. This lack of validation allows an attacker to supply a crafted vscode:// or vscode-insiders:// URL, which is then handed off to VS Code, potentially leading to command execution. The vulnerability is resolved in version 2.96.0.
Potential Impact
An attacker controlling a Codespace can exploit this vulnerability to execute commands on the user's system by supplying a malicious URL that the 'gh codespace jupyter' command will open without proper validation. The impact includes limited confidentiality and integrity loss but no availability impact. The attack requires user interaction (UI) and low privileges but can affect the system due to the command execution capability.
Mitigation Recommendations
Upgrade GitHub CLI (gh) to version 2.96.0 or later, where this vulnerability is fixed. Until then, avoid connecting to untrusted Codespaces using the 'gh codespace jupyter' command. Patch status is confirmed fixed in 2.96.0.
UBUNTU-CVE-2026-59831
Description
GitHub CLI (gh) versions from 2.10.0 through 2.95.0 contain a vulnerability in the 'gh codespace jupyter' command. This command opens a JupyterLab URL supplied by a process inside the Codespace without validating that the URL is a loopback HTTP or HTTPS address. This flaw allows a crafted vscode:// or vscode-insiders:// URL to be passed to VS Code, potentially enabling command execution. The issue is fixed in version 2.96.0.
CVSS v3.1
Score 4.4medium
Affected software
pkg:deb/ubuntu/[email protected]+dfsg1-2?arch=source&distro=jammypkg:deb/ubuntu/[email protected]+esm3?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The GitHub CLI (gh) tool, versions 2.10.0 through 2.95.0, has a vulnerability in the 'gh codespace jupyter' command. When connecting to a malicious Codespace, the command opens a JupyterLab URL provided by a process inside the Codespace without validating that it is a loopback HTTP or HTTPS address. This lack of validation allows an attacker to supply a crafted vscode:// or vscode-insiders:// URL, which is then handed off to VS Code, potentially leading to command execution. The vulnerability is resolved in version 2.96.0.
Potential Impact
An attacker controlling a Codespace can exploit this vulnerability to execute commands on the user's system by supplying a malicious URL that the 'gh codespace jupyter' command will open without proper validation. The impact includes limited confidentiality and integrity loss but no availability impact. The attack requires user interaction (UI) and low privileges but can affect the system due to the command execution capability.
Mitigation Recommendations
Upgrade GitHub CLI (gh) to version 2.96.0 or later, where this vulnerability is fixed. Until then, avoid connecting to untrusted Codespaces using the 'gh codespace jupyter' command. Patch status is confirmed fixed in 2.96.0.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-59831
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:Pro:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a58b45968715ace43d6bbd3
Added to database: 07/16/2026, 10:37:13 UTC
Last enriched: 07/16/2026, 11:33:21 UTC
Last updated: 07/31/2026, 19:24:47 UTC
Views: 36
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.