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.
CVE-2026-59831
This medium-severity CVE scores 4.4 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.2%, top 90% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.4
- EG Score
- 4.4(medium)
- EPSS
- 9.8%
- KEV
- Not listed
Published
July 9, 2026
Last Modified
July 10, 2026
Advisory Details (3)
Auto-updated Jul 9, 2026Connecting to a malicious Codespace via `gh codespace jupyter` could allow command execution on the user's computer · Advisory · cli/cli · GitHub
https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2GitHub CLI 2.96.0
Patch available: cli/cli v2.96.0
https://github.com/cli/cli/releases/tag/v2.96.0commit b300f2ec7ec9 (cli/cli)
Fix landed in cli/cli commit b300f2ec7ec9 — awaiting tagged release
https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 6× in last 7d / 6× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 21:56 UTCEG score recompute
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-10 22:25 UTCEG score recompute
- 2026-07-09 22:46 UTCEG score recompute
- 2026-07-09 22:45 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-59831?
When was CVE-2026-59831 disclosed?
Is CVE-2026-59831 actively exploited?
What is the CVSS score of CVE-2026-59831?
How do I remediate CVE-2026-59831?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-59831
Is Your Infrastructure Affected by CVE-2026-59831?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.