CVE-2026-64652: GitHub CLI Authentication Token Exposure in `gh auth status` Output

github.com/cli/cli/v2 Updated 16 Oct 2026

Summary

15/10/2026
Yes i
Low
3.3

CVE-2026-64652: GitHub CLI partially discloses authentication tokens in gh auth status output. Affects github.com/cli/cli/v2 versions < 2.97.0. Fixed in 2.97.0. How to fix ↓

Also tracked for

The same CVE-2026-64652 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

GitHub CLI is a command-line tool that allows users to interact with GitHub from the terminal. It provides functionalities such as managing repositories, issues, pull requests, and more. The tool is widely used by developers for its efficiency and integration with GitHub services. However, a vulnerability has been identified in the way it handles authentication tokens, specifically when users run the gh auth status command.

Vulnerability Detail

The vulnerability arises from the improper masking of authentication tokens in the output of the gh auth status command. When this command is executed without the --show-token flag, it may reveal a portion of the authentication token in plaintext. This issue affects fine-grained personal access tokens and GitHub App installation/user access tokens, which can lead to the exposure of sensitive information if the output is logged or shared. The vulnerability is particularly concerning in CI/CD environments where logs may be captured and stored.

How To Fix

Latest published version: v2.103.0 as of 23 Oct 2026

go get github.com/cli/cli/v2@v2.103.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.97.0

This is the first release that contains the fix.

go get github.com/cli/cli/v2@v2.97.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Until the upgrade is completed, users should avoid running the gh auth status command in contexts where the output may be captured or shared. If the command must be run, ensure to manually redact the token line before sharing any output.

Conclusion

The vulnerability identified as CVE-2026-64652 in GitHub CLI poses a risk of exposing authentication tokens through the gh auth status command. Users are advised to upgrade to version 2.97.0 to mitigate this risk and should take immediate action to rotate any potentially exposed tokens.

See every vulnerability recorded for github.com/cli/cli/v2 →

Share this vulnerability

FAQ

The vulnerability affects fine-grained personal access tokens (e.g., github_pat_*) and GitHub App installation/user access tokens (e.g., ghs_*, ghu_*). Classic tokens like gho_* and ghp_* are not affected.

If you suspect that your token has been exposed, you should rotate the affected token immediately. For fine-grained personal access tokens, regenerate the token from your account settings.

In CI/CD environments, the output of gh auth status can be logged or shared, potentially exposing sensitive token information. This could lead to unauthorized access if the token is captured.

Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

The CVSS score for this vulnerability is 3.3, indicating a low severity level.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/cli/cli/v2.

How To Fix

Latest published version: v2.103.0 as of 23 Oct 2026

go get github.com/cli/cli/v2@v2.103.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.97.0

This is the first release that contains the fix.

go get github.com/cli/cli/v2@v2.97.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback