Vulnerability · CVE-2026-64652
GitHub CLI partially discloses authentication tokens in output
Published Oct 15, 2026 · corrected/updated Oct 15, 2026 · evidence confidence high
### Summary A security vulnerability has been identified in GitHub CLI where could potentially print a portion of the authentication token in plaintext, depending on the lexical structure of the token. Affected users: - Authenticated users who ran (without the flag) with a token type whose format contains an underscore after the prefix. This includes fine-grained personal access tokens ( ) and GitHub App installation/user access tokens ( , , e.g., ), including the Actions . Classic tokens such as and have an underscore-free body and are not affected. ### Details The vulnerability stems from the way GitHub CLI masks the authentication token when reporting authentication state: 1. A user runs without , expecting the token to be fully masked. 2. The masking logic redacts only the characters that follow the last underscore in the token, instead of redacting everything after the token prefix. 3. The partially masked token is written to the command output, where it can be captured or shared. Because is a diagnostic command commonly run interactively and inside automated environments, the leaked token characters can end up in CI/CD job logs, terminal scrollback, screen recordings, screenshots, or pasted output shared in bug reports and support requests. In , GitHub CLI fully masks the token in output, preserving only the known token prefix and redacting the remainder unless is explicitly provided. ### Impact Running in a context where the output is captured, logged, or shared could leak a portion of an affected token. The affected token types are fine-grained personal access tokens ( ) and GitHub App installation/user access tokens ( , , e.g., ), including the Actions . Installation and Actions tokens are short-lived, which narrows the window in which a recovered token could be reused. See [GitHub credential types](https://docs.github.com/en/organizations/managing-programmatic-access-to-your-organization/github-credential-types#credential-types-overview). ### Remediation a
Grounded briefings
Catalog interpretations for three audiences. Each brief cites ingested metadata and the original advisories below. They are not independent research and they do not invent exploit steps.
Executive
CVE-2026-64652 is a low public vulnerability record for this product. It is not currently listed in the CISA Known Exploited catalog. Check the linked vendor or CERT advisories for patch status. This summary is a catalog interpretation of the ingested metadata and cites the original advisories below.
System administrator
Identify whether this product is in your estate, then compare installed versions with the affected ranges. Affected packages or ranges on record: github.com/cli/cli/v2 (0 → 2.97.0); github.com/cli/cli/v2 (< 2.97.0); github.com. Check the linked vendor or CERT advisories for patch status. Prefer the vendor or distribution advisory linked in Sources before changing production systems. This is a catalog interpretation, not a runbook.
Security analyst
Signals on file: CVSS 3.3, EPSS 0.2%. It is not currently listed in the CISA Known Exploited catalog. Weakness classes: CWE-201. Sources contributing to this record: cve_org, epss, github, gitlab. Public exploit references, when present, are outbound links only and are not proof of active exploitation. This is a catalog interpretation of stored metadata.
Exploitation and remediation
Exploitation evidence
Not listed as known exploited in CISA KEV. Not in CISA KEV or VulnCheck KEV.
Patch and remediation
No required-action text is stored yet. Use the vendor or CERT links in Sources for patch availability.
Safe detection guidance
Compare installed versions with the affected ranges below and verify the advisory from the original publisher. This site stores metadata and outbound links only; it does not ship exploit code or proof-of-concept payloads.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 15, 2026 · GitHub Advisory Database
Detected
### Summary A security vulnerability has been identified in GitHub CLI where could potentially print a portion of the authentication token in plaintext, depending on the lexical structure of the token. Affected users: - Authenticated users who ran (without the flag) with a token type whose format contains an underscore after the prefix. This includes fine-grained personal access tokens ( ) and Git
Oct 15, 2026 · GitHub Advisory Database
Fix available
github.com/cli/cli/v2 fixed in 2.97.0
Oct 15, 2026 · GitHub Advisory Database
Fix available
github.com/cli/cli/v2 fixed in 2.97.0
Oct 15, 2026 · GitHub Advisory Database
Updated
### Summary A security vulnerability has been identified in GitHub CLI where could potentially print a portion of the authentication token in plaintext, depending on the lexical structure of the token. Affected users: - Authenticated users who ran (without the flag) with a token type whose format contains an underscore after the prefix. This includes fine-grained personal access tokens ( ) and Git
Affected
- Go github.com/cli/cli/v20 → 2.97.0
- go github.com/cli/cli/v2< 2.97.0
- golang github.comversion unspecified
Sources
- CVE.orgVulnerability recordCVE-2026-64652
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-64652
30-day exploitation probability 0.2%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-cg6r-mpgc-h9mm
GitHub Advisory Database record mirrored by OSV.
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-64652
A security vulnerability has been identified in GitHub CLI where gh auth status could potentially print a portion of the authentication token in plaintext, depending on the lexical structure of the token. Affected users: Authenticated users who 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
advisories.gitlab.com - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-cg6r-mpgc-h9mm
GitHub CLI partially discloses authentication tokens in output
osv.dev