- Windows: gh_2.106.0_windows_386.msi
- macOS: gh_2.106.0_macOS_universal.pkg
- Linux: gh_2.106.0_linux_386.tar.gz
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.
- 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.
- 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.
gh codespace portscould print untrusted terminal control characters from port labels.
See https://github.com/cli/cli/security/advisories/GHSA-5v78-vjjq-j2fj for more information.
gh agent-task view --logcould 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.
gh skill updatecould 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.
gh skill installandgh skill searchcould print untrusted terminal control characters from remote skill text.
See https://github.com/cli/cli/security/advisories/GHSA-mjfw-qpmw-c8p9 for more information.
gh codespace jupytercould 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.
What's Changed
✨ Features
- Revoke GitHub CLI OAuth tokens during
gh auth logoutby @BagToad in #15100
🐛 Fixes
- fix(run view): preserve log output after lines longer than 64 KiB by @babakks in #15065
- fix(auth): fall back to non-expiring tokens on GitHub Enterprise Server before 3.23 by @BagToad in #15109
- fix(auth): clear saved HTTPS Git helper credentials during logout by @BagToad and @babakks in #15152
- fix(auth): keep a valid credential refreshed by another process after refresh rejection by @babakks in #15159
📚 Docs & Chores
- Document that GitHub Event Streams may deliver events more than once by @babakks in #15094
- Patch vulnerable
cli-exerciseruntime dependencies by @babakks in #15068 - Add a bug readiness assessment skill by @tidy-dev in #15149
:dependabot: Dependencies
- chore(deps): bump
charm.land/lipgloss/v2from 2.1.0 to 2.1.1 by @dependabot in #15095 - chore(deps): bump
actions/setup-gofrom 7.0.0 to 7.1.0 by @dependabot in #15117 - chore(deps): bump
github.com/klauspost/compressfrom 1.20.4 to 1.20.5 by @dependabot in #15140 - chore(deps): bump the
codeql-actionsgroup from 4.39.3 to 4.39.4 by @dependabot in #15142 - chore(deps): bump
actions/create-github-app-tokenfrom 3.3.0 to 3.4.0 by @dependabot in #15143 - chore(deps): bump
charm.land/bubbles/v2from 2.2.1 to 2.2.2 by @dependabot in #15144 - chore(deps): bump
charm.land/bubbletea/v2from 2.1.1 to 2.1.2 by @dependabot in #15141 - chore(deps): bump
github.com/charmbracelet/x/ansifrom 0.11.9 to 0.11.10 by @dependabot in #15145 - chore(deps): bump
github.com/gorilla/websocketfrom 1.5.3 to 1.5.4-0.20240701034025-d67f41855da4 by @BagToad in #15157
Full Changelog: https://github.com/cli/cli/compare/v2.105.0...v2.106.0