Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cli/cli/v2
  4. ›
  5. CVE-2026-64652

CVE-2026-64652: GitHub CLI partially discloses authentication tokens in `gh auth status` output

October 15, 2026

A security vulnerability has been identified in GitHub CLI where gh auth status could potentially print a portion of the authentication token in plaintext, depending on the lexical structure of the token.

Affected users:

  • Authenticated users who 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/user access tokens (ghs_*, ghu_*, e.g., ghs_<APPID>_<JWT>), including the Actions GITHUB_TOKEN. Classic tokens such as gho_* and ghp_* have an underscore-free body and are not affected.

References

  • github.com/advisories/GHSA-cg6r-mpgc-h9mm
  • github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3
  • github.com/cli/cli/releases/tag/v2.97.0
  • github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm
  • nvd.nist.gov/vuln/detail/CVE-2026-64652

Code Behaviors & Features

Detect and mitigate CVE-2026-64652 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.97.0

Fixed versions

  • 2.97.0

Solution

Upgrade to version 2.97.0 or above.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-201: Insertion of Sensitive Information Into Sent Data

Source file

go/github.com/cli/cli/v2/CVE-2026-64652.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 13 Nov 2026 00:17:59 +0000.