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_), 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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-201"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64652.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.97.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v2.97.0",
"range": [
{
"fixed": "55dbb4dc6b7edb10b48e3d7fc5bccd32318d1b55"
}
],
"source": "REFERENCES_TAG"
}
]
}