CVE-2026-64652: GitHub CLI: Partial token disclosure in `gh auth status` output
GitHub CLI (gh) is GitHub's official command line tool. Prior to version 2.97.0, gh auth status masked only the characters after the last underscore in certain fine-grained personal access tokens and GitHub App tokens. As a result, part of an affected token could appear in terminal or CI output that is captured or shared. Authenticated users are affected if they ran gh auth status (without the --show-token flag) with a token type whose format contains an underscore after the prefix. This includes fine-grained personal access tokens (githubpat) and GitHub App installation and user access tokens (ghs, ghu; for example, ghs<APPID><JWT>), as well as the Actions GITHUBTOKEN. Classic tokens such as gho and ghp have an underscore-free body and are not affected. 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 (gh)to a version that resolves this vulnerability.Fixed in 2.97.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64652?
The severity of CVE-2026-64652 is rated as low with a score of 3.3.
How do I fix CVE-2026-64652?
To fix CVE-2026-64652, update the GitHub CLI to version 2.97.0 or later.
What type of vulnerability is CVE-2026-64652?
CVE-2026-64652 is a partial token disclosure vulnerability.
In which software is CVE-2026-64652 found?
CVE-2026-64652 is found in the GitHub CLI (gh) tool.
What output is affected by CVE-2026-64652?
CVE-2026-64652 affects the output of the `gh auth status` command, which may reveal part of certain tokens.