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.
Published: 2026-08-06
Score: 3.3 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

GitHub CLI (gh) performed a hidden token masking feature that only obscured characters after the last underscore in the token string. As a result, the suffix of fine‑grained personal access tokens and GitHub App tokens was visible in terminal and CI command output. This partial disclosure allows an observer with access to such output to see a fragment of a credential, which could be used in combination with other leaked data or brute‑forced to compromise the token. The vulnerability does not grant code execution or administrator privileges; it simply leaks sensitive token data. The weakness is classified as CWE‑201, information exposure.

Affected Systems

Affected systems include the GitHub CLI (cli:cli) running any version prior to 2.97.0. Authenticated users who ran gh auth status without the --show-token flag with a fine‑grained personal access token (github_pat_*), GitHub App installation or user access tokens (ghs_*, ghu_*) or the Actions GITHUB_TOKEN may see parts of their tokens in terminal or logs. Classic tokens such as gho_* and ghp_* are not affected due to their underscore‑free format.

Risk and Exploitability

The CVSS score of 3.3 indicates low severity, reflecting the information‑exposure nature rather than a direct exploitation pathway. EPSS data is not available, so the real‑world probability of exploitation is uncertain. The issue is not listed in the CISA KEV catalog. Likely attack scenarios involve a human operator or CI system capturing console output or logs where gh auth status is executed without the --show-token flag. An attacker who obtains a token fragment may still need additional information to fully compromise an account, but the partial disclosure increases the attack surface and risk of credential misuse.

Generated by OpenCVE AI on August 7, 2026 at 01:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update GitHub CLI to version 2.97.0 or later to receive the corrected token masking logic.
  • Revoke any tokens that might have been exposed in logs and generate new ones; update the configuration used by CI pipelines.
  • Ensure CI jobs and local scripts do not run gh auth status without the --show-token flag, and remove or redact any existing command output that might contain the leaked token suffix.

Generated by OpenCVE AI on August 7, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
First Time appeared Cli
Cli cli
Vendors & Products Cli
Cli cli

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
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.
Title GitHub CLI: Partial token disclosure in `gh auth status` output
Weaknesses CWE-201
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T17:45:35.729Z

Reserved: 2026-07-20T17:11:30.896Z

Link: CVE-2026-64652

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:45:05Z

Weaknesses
  • CWE-201

    Insertion of Sensitive Information Into Sent Data