{"id":"UBUNTU-CVE-2026-59831","details":"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.","modified":"2026-07-15T17:53:45Z","published":"2026-07-09T23:17:00Z","upstream":["CVE-2026-59831"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-59831"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-59831"},{"type":"REPORT","url":"https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2"},{"type":"REPORT","url":"https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"},{"type":"REPORT","url":"https://github.com/cli/cli/releases/tag/v2.96.0"}],"affected":[{"package":{"name":"gh","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/gh?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0+dfsg1-1","2.4.0+dfsg1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.0+dfsg1-2","binary_name":"gh"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59831.json"}},{"package":{"name":"gh","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/gh?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.27.0+dfsg1-1build1","2.30.0-2","2.35.0-1","2.40.1+dfsg1-1","2.42.1-1","2.43.1-1","2.44.1-1","2.44.1-2","2.45.0-1","2.45.0-1build1","2.45.0-1ubuntu0.1","2.45.0-1ubuntu0.2","2.45.0-1ubuntu0.2+esm1","2.45.0-1ubuntu0.2+esm2","2.45.0-1ubuntu0.3","2.45.0-1ubuntu0.3+esm1","2.45.0-1ubuntu0.3+esm2","2.45.0-1ubuntu0.3+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"2.45.0-1ubuntu0.3+esm3","binary_name":"gh"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59831.json"}},{"package":{"name":"gh","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/gh?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.46.0-3","2.46.0-4","2.46.0-4ubuntu0.26.04.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.46.0-4ubuntu0.26.04.1~esm1","binary_name":"gh"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59831.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}