Input validation error in GitHub CLI - CVE-2026-59831

 

Input validation error in GitHub CLI - CVE-2026-59831

Published: July 3, 2026


Vulnerability identifier: #VU136854
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59831
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to improper input validation in the gh codespace jupyter command when opening the Jupyter server URL returned by a process inside the Codespace. A remote user can supply a crafted vscode:// URL to execute arbitrary code.

User interaction is required to accept a VS Code open URL or Workspace Trust prompt.


Affected software

GitHub CLI

How to mitigate CVE-2026-59831

Install security update from vendor's website.

GitHub CLI - update to 2.96.0

External References

Related Security Bulletins