CVE-2026-64652
LOW 3.3CVSS 3.1GitHub CLI partially discloses authentication tokens 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.
- Published
- 6 Aug 2026
- Last modified
- 19 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-201
- Also known as
- GHSA-cg6r-mpgc-h9mmGO-2026-6766
- Sources
- NVDJSONOSV GHSA-cg6r-mpgc-h9mmJSONOSV GO-2026-6766JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/cli/cli/v2 | < 2.97.0 | 2.97.0 |
| OSV | Go | github.com/cli/cli | all versions |
References
- https://github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3 · WEB, FIX
- https://github.com/cli/cli/releases/tag/v2.97.0 · WEB
- https://github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-64652 · ADVISORY
- https://github.com/cli/cli · PACKAGE
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 6 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Oct 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 15 Oct 2026)