{"id":"CVE-2026-59831","published":"2026-07-09T22:11:05Z","modified":"2026-07-14T01:20:59Z","title":"GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace","vendor":"cli","product":"cli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00326,"percentile":0.26403,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0","tags":["x_refsource_MISC"]},{"url":"https://github.com/cli/cli/releases/tag/v2.96.0","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":5.28},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"cli","affectedVersions":[{"vendor":"cli","product":"cli","versions":[">= 2.10.0, < 2.96.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-14T01:20:49.738308Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42741","exploited":false,"provenance":"source"}}