CVE-2026-64652GitHub CLI: Partial token disclosure in `gh auth status` output
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
Fixed builds are available from Go: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gh | Fix pending | UBUNTU-CVE-2026-64652 | |
| Ubuntu 26.04 | gh | Fix pending | UBUNTU-CVE-2026-64652 | |
| Ubuntu 24.04 | gh | Fix pending | UBUNTU-CVE-2026-64652 | |
| Ubuntu 22.04 | gh | Under investigation | UBUNTU-CVE-2026-64652 | |
| Debian 13 | gh | Fix pending | DEBIAN-CVE-2026-64652 | |
| Debian 12 | gh | Fix pending | DEBIAN-CVE-2026-64652 | |
| Go library | github.com/cli/cli | Fix pending | GO-2026-6766 | |
| Go library | github.com/cli/cli/v2 | Fixed | 2.97.0 | GHSA-cg6r-mpgc-h9mm |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cli: affected: < 2.97.0
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.