{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.97.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3"
            },
            {
              "fixed": "55dbb4dc6b7edb10b48e3d7fc5bccd32318d1b55"
            }
          ],
          "repo": "https://github.com/cli/cli",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-cg6r-mpgc-h9mm"
  ],
  "database_specific": {
    "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"
  },
  "details": "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_\u003cAPPID\u003e_\u003cJWT\u003e), 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.",
  "id": "CVE-2026-64652",
  "modified": "2026-08-09T03:30:16.128123685Z",
  "published": "2026-08-06T17:45:35.729Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/cli/cli/releases/tag/v2.97.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64652.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/cli/cli/security/advisories/GHSA-cg6r-mpgc-h9mm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-64652"
    },
    {
      "type": "FIX",
      "url": "https://github.com/cli/cli/commit/3f6a16a9f8c7fe9676aa8d8f47b399310dd231c3"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "GitHub CLI: Partial token disclosure in `gh auth status` output"
}