CVE Catalog

CVE-2026-59831

MediumCVSS 4.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.20%

10th percentile - higher than 10% of all known CVEs

Summary

A vulnerability in GitHub CLI (gh) from version 2.10.0 through 2.95.0 allows arbitrary command execution when connecting to a malicious Codespace using the `gh codespace jupyter` command. 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.

Risk Assessment

An attacker can exploit this vulnerability to execute arbitrary code on the victim's machine, potentially leading to system compromise, data theft, or further propagation of the attack within the organization's network.

Recommendation

Immediately update GitHub CLI to version 2.96.0 or later, which includes a fix for this vulnerability.

Other vulnerabilities in GitHub CLI

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS