{"id":"CVE-2026-59831","summary":"GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace","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.","aliases":["GHSA-8cg3-r6g9-fpg2"],"modified":"2026-08-04T11:31:19.967565093Z","published":"2026-07-09T22:11:05.418Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-829"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59831.json"},"references":[{"type":"WEB","url":"https://github.com/cli/cli/releases/tag/v2.96.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59831.json"},{"type":"ADVISORY","url":"https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59831"},{"type":"FIX","url":"https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cli/cli","events":[{"introduced":"06153770a921a2df2b9dba6735f6ae7f7f6a1160"},{"fixed":"b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"}],"database_specific":{"extracted_events":[{"introduced":"2.10.0"},{"fixed":"2.96.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.95.0","v2.94.0","v2.93.0","v2.92.0","v2.91.0","v2.90.0","v2.89.0","v2.88.1","v2.88.0","v2.87.3","v2.87.2","v2.87.1","v2.87.0","v2.85.0","v2.86.0","v2.83.2","v2.83.1","v2.83.0","v2.82.1","v2.82.0","v2.81.0","v2.80.0","v2.79.0","v2.78.0","v2.77.0","v2.76.2","v2.76.1","v2.76.0","v2.75.1","v2.75.0","v2.74.2","v2.74.1","v2.74.0","v2.73.0","v2.72.0","v2.71.2","v2.71.1","v2.71.0","v2.70.0","v2.69.0","v2.68.1","v2.68.0","v2.67.0","v2.66.1","v2.66.0","v2.65.0","v2.64.0","v2.63.2","v2.63.1","v2.63.0","v2.62.0","v2.61.0","v2.60.1","v2.60.0","v2.59.0","v2.58.0","v2.57.0","v2.56.0","v2.55.0","v2.54.0","v2.53.0","v2.52.0","v2.51.0","v2.50.0","v2.49.2","v2.49.1","v2.49.0","v2.48.0","v2.47.0","v2.46.0","v2.45.0","v2.44.1","v2.44.0","v2.43.1","v2.43.0","v2.42.1","v2.42.0","v2.41.0","v2.40.1","v2.40.0","v2.39.2","v2.39.1","v2.39.0","v2.38.0","v2.37.0","v2.36.0","v2.35.0","v2.34.0","v2.33.0","v2.32.1","v2.32.0","v2.31.0","v2.30.0","v2.27.0","v2.26.1","v2.26.0","v2.25.1","v2.25.0","v2.24.3","v2.24.2","v2.24.1","v2.24.0","v2.23.0","v2.22.1","v2.22.0","v2.21.2","v2.21.1","v2.21.0","v2.20.2","v2.20.1","v2.20.0","v2.19.0","v2.18.1","v2.18.0","v2.17.0","v2.16.1","v2.16.0","v2.15.0","v2.14.7","v2.14.6","v2.14.5","v2.14.4","v2.14.3","v2.14.2","v2.14.1","v2.14.0","v2.13.0","v2.12.1","v2.12.0","v2.11.3","v2.11.2","v2.11.1","v2.11.0","v2.10.1","v2.10.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59831.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}