Skip to main content
← All vulnerabilities
CVE-2026-64652GO-2026-6766GHSA-CG6R-MPGC-H9MM

GitHub CLI: Partial token disclosure in `gh auth status` output

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.97.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cli cli

    fixed in 2.97.0

  • github.com/cli/cliGo

    All versions

  • github.com/cli/cli/v2Go

    fixed in 2.97.0

References 3

GitHub · cli/cli