1. CVE archive
  2. 2026
  3. CVE-2026-64652

CVE-2026-64652

3.3 Low severity CVSS v3.1 · source NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N 3.3 – Low

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 products

VendorProductVersionPlatform
cli cli < 2.97.0 –
All 9 Cli vulnerabilities

Vulnerability type

CWE-201 Insertion of Sensitive Information Into Sent Data

The code transmits data to another actor, but a portion of the data includes sensitive information that should not be accessible to that actor.

Impact on systems

ScopeImpact
Confidentiality Read Files or Directories, Read Memory, Read Application Data
Sensitive data may be exposed to attackers.

How to prevent it

Requirements Specify which data in the software should be regarded as sensitive. Consider which types of users should have access to which types of data.
Implementation Ensure that any possibly sensitive data specified in the requirements is verified with designers to ensure that it is either a calculated risk or mitigated elsewhere. Any information that is not necessary to the functionality should be removed in order to lower both the overhead and the possibility of security sensitive data being sent.
System Configuration Setup default error messages so that unexpected errors do not disclose sensitive information.
Architecture and Design · Separation of Privilege Compartmentalize the system to have safe areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area. Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

All 526 CWE-201 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org