PatchSiren cyber security CVE debrief
CVE-2026-59831 cli CVE debrief
CVE-2026-59831 is a medium-severity vulnerability in GitHub CLI (gh) versions 2.10.0 through 2.95.0. The issue allows command execution when connecting to a malicious Codespace with 'gh codespace jupyter' due to improper validation of JupyterLab URLs supplied by a process inside the Codespace. This could potentially allow a crafted vscode:// or vscode-insiders:// URL to be handed to VS Code. The vulnerability is fixed in version 2.96.0.
- Vendor
- cli
- Product
- Unknown
- CVSS
- MEDIUM 4.4
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-09
- Original CVE updated
- 2026-07-14
- Advisory published
- 2026-07-09
- Advisory updated
- 2026-07-14
Who should care
Users of GitHub CLI (gh) versions 2.10.0 through 2.95.0 should be aware of this vulnerability and take steps to mitigate it. This includes updating to version 2.96.0 or later, and exercising caution when connecting to Codespaces.
Technical summary
The GitHub CLI (gh) is vulnerable to command execution when connecting to a malicious Codespace using 'gh codespace jupyter'. This is due to the lack of validation for JupyterLab URLs provided by a process inside the Codespace. An attacker could potentially craft a malicious vscode:// or vscode-insiders:// URL to be handled by VS Code. The issue is addressed in version 2.96.0. Users of affected versions (2.10.0 through 2.95.0) should update to 2.96.0 or later to mitigate this vulnerability. It's also crucial to exercise caution when connecting to Codespaces, especially those from untrusted sources, and monitor for any suspicious activity related to Codespace connections.
Defensive priority
Medium priority should be given to updating GitHub CLI (gh) to version 2.96.0 or later. Users should also be cautious when connecting to Codespaces, especially those from untrusted sources.
Recommended defensive actions
- Update GitHub CLI (gh) to version 2.96.0 or later
- Exercise caution when connecting to Codespaces, especially those from untrusted sources
- Monitor for any suspicious activity related to Codespace connections
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record was published on 2026-07-09T23:17:05.483Z and was last modified on 2026-07-10T19:17:58.040Z. The NVD entry is currently Undergoing Analysis. The vulnerability is described in the CVE record and additional information can be found in the GitHub security advisory.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-59831 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-59831
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-59831 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-59831
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0
-
Source reference
Unverified legacy reference
URL: https://github.com/cli/cli/releases/tag/v2.96.0
-
Source reference
Unverified legacy reference
URL: https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.