CVE-2026-64654: GitHub CLI: Terminal escape sequence injection in multiple `gh` commands
GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, multiple GitHub CLI commands printed externally controlled gist, API, pull request, release, codespace, skill, or agent-task content without neutralizing terminal escape sequences. An attacker who can influence that content can embed escape sequences that are interpreted by the terminal of a user who runs an affected command, with impact ranging from cosmetic manipulation of the title or on-screen content to, on some terminal emulators, command execution. This extends the same class of issue as CVE-2026-45803—which addressed only gh run view --log—to the other affected command paths. This issue is fixed in version 2.97.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
github-cli/ghto a version that resolves this vulnerability.Fixed in 2.97.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64654?
The severity of CVE-2026-64654 is rated at 60.
How do I fix CVE-2026-64654?
To fix CVE-2026-64654, upgrade to GitHub CLI version 2.97.0 or higher.
What commands are affected by CVE-2026-64654?
CVE-2026-64654 affects multiple GitHub CLI commands that print externally controlled content.
What type of vulnerability is CVE-2026-64654?
CVE-2026-64654 is a terminal escape sequence injection vulnerability.
Who is affected by CVE-2026-64654?
Users of GitHub CLI prior to version 2.97.0 are affected by CVE-2026-64654.