GitHub CLI: Partial token disclosure in `gh auth status` output
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-201.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cli | cli | before 2.97.0 | 2.97.0 | Patch available | CNA |
| — | github.com/cli/cli/v2 (Go) | before 2.97.0 | 2.97.0 | Patch available | GHSA-cg6r-mpgc-h9mm |
- cli Vendorcli Affected before 2.97.0 Fixed in 2.97.0 Patch available CNA
- github.com/cli/cli/v2 (Go) Vendor— Affected before 2.97.0 Fixed in 2.97.0 Patch available GHSA-cg6r-mpgc-h9mm
Remediation
- Fix · CNA cli (cli) Fixed in 2.97.0
- Fix · GHSA-cg6r-mpgc-h9mm github.com/cli/cli/v2 (Go) Fixed in 2.97.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-64652
- 2026-10-16 Alias added: GHSA-cg6r-mpgc-h9mm
- 2026-10-16 Fix available: Go/github.com/cli/cli/[email protected] · GHSA-cg6r-mpgc-h9mm
- 2026-10-16 CVSS score added · GHSA-cg6r-mpgc-h9mm
- 2026-10-16 Weakness changed · GHSA-cg6r-mpgc-h9mm
- 2026-10-16 5 new references · GHSA-cg6r-mpgc-h9mm
References
More cli vulnerabilities
- TI-2025-18873 `gh attestation verify` returns incorrect exit code during verification if no attestations are present CVSS 3.1MEDIUM 6.3
- TI-2026-33538 gh: GitHub Actions log output in `gh run view` allows terminal escape sequence injection CVSS 3.1LOW 3.5
- TI-2024-34983 Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer CVSS 3.1CRITICAL 9.6
- TI-2026-35862 GitHub CLI tokens leak via `gh attestation` commands CVSS 3.1CRITICAL 9.1
- TI-2024-36052 go-gh `auth.TokenForHost` violates GitHub host security boundary within a codespace CVSS 3.1HIGH 7.5
- TI-2024-36051 Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in the gh cli CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-64652 · CVE Program
- CVE-2026-64652 · NVD
- FIRST EPSS
- GHSA-cg6r-mpgc-h9mm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences