ADVISORIES

Vulnerability

CVE-2026-64652

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.

9 advisories report this vulnerability, across 6 ecosystems.

Advisories

  • AZL-95468

    CVE-2026-64652 affecting package gh for versions less than 2.97.0-1

    CVE-2026-64652 Azure Linux Updated 10 September 2026
  • DEBIAN-CVE-2026-64652

    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.…

    CVE-2026-64652 Debian Updated 1 October 2026
  • GHSA-cg6r-mpgc-h9mm

    GitHub CLI partially discloses authentication tokens in `gh auth status` output

    Low CVE-2026-64652 Go Updated 19 October 2026
  • GO-2026-6766

    GitHub CLI partially discloses authentication tokens in `gh auth status` output in github.com/cli/cli

    CVE-2026-64652 Go Updated 19 October 2026
  • SUSE-SU-2026:24730-1

    Security update for govulncheck-vulndb

    Known exploited CVE-2026-100347CVE-2026-100348CVE-2026-100349CVE-2026-100350 SUSE Updated 17 November 2026
  • UBUNTU-CVE-2026-64652

    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.…

    CVE-2026-64652 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:11530-1

    gh-2.97.0-1.1 on GA media

    CVE-2026-64652CVE-2026-64653CVE-2026-64654CVE-2026-64655 openSUSE Updated 18 August 2026
  • openSUSE-SU-2026:21663-1

    Security update for gh

    CVE-2026-39821CVE-2026-64652CVE-2026-64653CVE-2026-64654 openSUSE Updated 27 August 2026
  • openSUSE-SU-2026:22336-1

    Security update for govulncheck-vulndb

    Known exploited CVE-2026-100347CVE-2026-100348CVE-2026-100349CVE-2026-100350 openSUSE Updated 18 November 2026

References