4.4
MEDIUM CVSS 3.1
CVE-2026-59831
GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace
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.

INFO

Published Date :

July 9, 2026, 11:17 p.m.

Last Modified :

July 9, 2026, 11:17 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-59831 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
Solution
Update GitHub CLI to version 2.96.0 or later to fix command execution vulnerability.
  • Update GitHub CLI to version 2.96.0 or later.
  • Avoid connecting to untrusted Codespaces.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-59831.

URL Resource
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
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-59831 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-59831 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-59831 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by [email protected]

    Jul. 09, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'cli', 'product': 'cli', 'versions': [{'status': 'affected', 'version': '>= 2.10.0, < 2.96.0'}]}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
    Added CWE CWE-829
    Added Reference https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0
    Added Reference https://github.com/cli/cli/releases/tag/v2.96.0
    Added Reference https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.