CVEfocus › CVE database › CVE-2026-59831

CVE-2026-59831GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a…

CVSS 4.4 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2026-07-09Updated 2026-07-14Assigner: GitHub_M

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.

CWE-829

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ghFix pendingUBUNTU-CVE-2026-59831
Ubuntu 26.04ghFix pendingUBUNTU-CVE-2026-59831
Ubuntu 24.04ghFix pendingUBUNTU-CVE-2026-59831
Ubuntu 22.04ghUnder investigationUBUNTU-CVE-2026-59831
Debian 13ghFix pendingDEBIAN-CVE-2026-59831
Debian 12ghFix pendingDEBIAN-CVE-2026-59831
Go librarygithub.com/cli/cli/v2Fixed2.96.0GHSA-8cg3-r6g9-fpg2

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.