CVE-2026-64652

Low

Description

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 (github_pat_*) and GitHub App installation and user access tokens (ghs_*, ghu_*; for example, ghs_<APPID>_<JWT>), as well as the Actions GITHUB_TOKEN. 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.

SeverityLow
CVSS3.3
Exploit probability—
ProductGithub.com/cli/cli/v2
PublishedAug 6, 2026
First seenAug 6, 2026
Weakness typeCWE-201CWE-201

How to fix

Update
  • github.com/cli/cli/v22.97.0 or later

Affected products

ProductAffected versionsFixed in
github.com/cli/cli/v2Gov < 2.97.02.97.0
github.com/cli/cliGoNo range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.