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.
{
"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"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.10.0"
},
{
"fixed": "2.96.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v2.96.0",
"range": [
{
"fixed": "b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"
}
],
"source": "REFERENCES_TAG"
}
]
}