Vulnerability · Published Aug 6, 2026 · Assigned by GitHub_M
CVE-2026-64652GitHub CLI: Partial token disclosure in `gh auth status` output
Low 3.3
In plain English
A low-severity security flaw in cli from cli. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | gh | no fix listed | DEBIAN-CVE-2026-64652 |
| Debian:13 | gh | no fix listed | DEBIAN-CVE-2026-64652 |
| Go | github.com/cli/cli | no fix listed | GO-2026-6766 |
| Go | github.com/cli/cli/v2 | 2.97.0 | GO-2026-6766 |
| Go | github.com/cli/cli/v2 | 2.97.0 | GHSA-cg6r-mpgc-h9mm |
| Ubuntu:22.04:LTS | gh | no fix listed | UBUNTU-CVE-2026-64652 |
| Ubuntu:26.10 | gh | no fix listed | UBUNTU-CVE-2026-64652 |
Affected products (as reported)
Weakness: CWE-201 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm x_refsource_CONFIRM
- https://github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3 x_refsource_MISC
- https://github.com/cli/cli/releases/tag/v2.97.0 x_refsource_MISC