GitHub CLI 2.106.0
Fixed 1
Patch Seven Security Vulnerabilities and Strengthen Credential Management
If you regularly use GitHub CLI, update to v2.106.0 as soon as possible. This release patches seven vulnerabilities, filters terminal control characters in commands and logs, and guards against updating same-named skills and exposing local services via Codespace.
gh auth logout revokes the OAuth token (an authorization credential) before removing credentials stored locally and in Git credential helpers. Add --no-revoke to keep the token and log out only locally.
When GitHub Enterprise Server versions earlier than 3.23 request expiring credentials, it prints a warning and falls back to a non-expiring fallback token:
```bash # Security fixes (including filtering request and response control characters in verbose HTTP and API debug logs) gh repo read-file / gh api # Recognize C1 control characters to keep unfiltered output out of the terminal gh codespace ports # Stop printing terminal control characters from port labels gh agent-task view --log # Stop printing control characters from tool-call names and arguments gh skill install / gh skill search # Stop printing control characters from remote skill text gh skill update # Prevent installing a skill from another repository that reuses the same name gh codespace jupyter # Prevent exposing local cookies and local dev services when connecting to a malicious Codespace
# Logout and credential fallback for GitHub Enterprise Server earlier than 3.23 gh auth logout # Revoke the selected account's GitHub CLI OAuth token before deleting local credentials gh auth logout --no-revoke # Keep legacy local-only logout, leaving the token valid gh auth login / gh auth refresh # Fall back to a non-expiring token on versions earlier than 3.23; applies to the expiring_credentials setting ```
At hotel checkout, the desk used to collect only the keycard in your hand while spare copies still worked; now it cancels account access at the same time and seals off fake name badges and leak gaps.
Original changelog
## Security
Seven security vulnerabilities have been identified and fixed in this release. Users are advised to update gh to version v2.106.0 as soon as possible.
1. The terminal escape-sequence check used by gh repo read-file, gh api, and other commands did not recognize C1 control characters, allowing untrusted output to reach a terminal without neutralization.
See https://github.com/cli/cli/security/advisories/GHSA-45h6-2fh4-pr93 for more information.
2. Verbose and API-debug HTTP logging could print untrusted terminal control characters from request and response data.
See https://github.com/cli/cli/security/advisories/GHSA-4946-22jg-pg7m for more information.
3. gh codespace ports could print untrusted terminal control characters from port labels.
See https://github.com/cli/cli/security/advisories/GHSA-5v78-vjjq-j2fj for more information.
4. gh agent-task view --log could print untrusted terminal control characters from tool-call names and arguments.
See https://github.com/cli/cli/security/advisories/GHSA-3j6c-526c-w465 for more information.
5. gh skill update could install a skill from a different repository that reused the installed skill's name.
See https://github.com/cli/cli/security/advisories/GHSA-q2rq-2r2v-2jm5 for more information.
6. gh skill install and gh skill search could print untrusted terminal control characters from remote skill text.
See https://github.com/cli/cli/security/advisories/GHSA-mjfw-qpmw-c8p9 for more information.
7. gh codespace jupyter could expose localhost cookies and local development services when connecting to a malicious Codespace.
See https://github.com/cli/cli/security/advisories/GHSA-mrhx-xw2w-4289 for more information.
## Improved authentication security on logout
gh auth logout now revokes the selected account's GitHub CLI OAuth token before removing local credentials. Use --no-revoke to preserve the legacy local-only logout, leaving the token valid.
gh now also removes saved HTTPS credentials for the host from Git credential helpers.
## Make expiring tokens more reliable
On GitHub Enterprise Server before 3.23, requests for expiring credentials now fall back to a non-expiring token with a warning instead of failing with invalid_scope. This applies to gh auth login, gh auth refresh, and the expiring_credentials setting.