CVE-2026-59831: GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace

Published Jul 9, 2026
·
Updated

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.

Other sources

GitHub CLI gh codespace jupyter could allow remote code execution when connecting to a malicious Codespace

Microsoft

Affected Software

2 affected componentsFixes available
GitHub GitHub CLI (gh)>=2.10.0<=2.95.0
Microsoft azl3 gh 2.62.0-18<2.62.0-19
2.62.0-19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.62.0-19
  2. Upgrade

    Upgrade GitHub CLI (gh) to a version that resolves this vulnerability.

    Fixed in 2.96.0

Event History

Jul 9, 2026
CVE Published
via MITRE·10:11 PM
Data Sourced
via MITRE·10:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness
Jul 15, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-59831?

The severity of CVE-2026-59831 is medium with a CVSS score of 4.4.

2

How do I fix CVE-2026-59831?

To fix CVE-2026-59831, update your GitHub CLI to version 2.96.0 or later.

3

What kind of vulnerability is CVE-2026-59831?

CVE-2026-59831 is a remote code execution vulnerability affecting the GitHub CLI when connecting to a malicious Codespace.

4

Who is affected by CVE-2026-59831?

Users of GitHub CLI versions 2.10.0 through 2.95.0 may be affected by CVE-2026-59831.

5

How does CVE-2026-59831 occur?

CVE-2026-59831 occurs when the GitHub CLI opens a JupyterLab URL from a malicious Codespace without proper validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203