CVE-2026-59831GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gh | Fix pending | UBUNTU-CVE-2026-59831 | |
| Ubuntu 26.04 | gh | Fix pending | UBUNTU-CVE-2026-59831 | |
| Ubuntu 24.04 | gh | Fix pending | UBUNTU-CVE-2026-59831 | |
| Ubuntu 22.04 | gh | Under investigation | UBUNTU-CVE-2026-59831 | |
| Debian 13 | gh | Fix pending | DEBIAN-CVE-2026-59831 | |
| Debian 12 | gh | Fix pending | DEBIAN-CVE-2026-59831 | |
| Go library | github.com/cli/cli/v2 | Fixed | 2.96.0 | GHSA-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.
- cli: affected: >= 2.10.0, < 2.96.0
References
- https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2
- https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0
- https://github.com/cli/cli/releases/tag/v2.96.0
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.