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.
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 logout by @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-exercise runtime dependencies by @babakks in #15068
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [cli/cli](https://github.com/cli/cli) | minor | `2.105.0` → `2.106.0` |
---
### Release Notes
<details>
<summary>cli/cli</summary>
### [`v2.106.0`](https://github.com/cli/cli/releases/tag/v2.106.0): GitHub CLI 2.106.0
[Compare Source](https://github.com/cli/cli/compare/v2.105.0...v2.106.0)
#### 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.
#### What's Changed
##### ✨ Features
- Revoke GitHub CLI OAuth tokens during `gh auth logout` by [@​BagToad](https://github.com/BagToad) in [#​15100](https://github.com/cli/cli/pull/15100)
##### 🐛 Fixes
- fix(run view): preserve log output after lines longer than 64 KiB by [@​babakks](https://github.com/babakks) in [#​15065](https://github.com/cli/cli/pull/15065)
- fix(auth): fall back to non-expiring tokens on GitHub Enterprise Server before 3.23 by [@​BagToad](https://github.com/BagToad) in [#​15109](https://github.com/cli/cli/pull/15109)
- fix(auth): clear saved HTTPS Git helper credentials during logout by [@​BagToad](https://github.com/BagToad) and [@​babakks](https://github.com/babakks) in [#​15152](https://github.com/cli/cli/pull/15152)
- fix(auth): keep a valid credential refreshed by another process after refresh rejection by [@​babakks](https://github.com/babakks) in [#​15159](https://github.com/cli/cli/pull/15159)
##### 📚 Docs & Chores
- Document that GitHub Event Streams may deliver events more than once by [@​babakks](https://github.com/babakks) in [#​15094](https://github.com/cli/cli/pull/15094)
- Patch vulnerable `cli-exercise` runtime dependencies by [@​babakks](https://github.com/babakks) in [#​15068](https://github.com/cli/cli/pull/15068)
- Add a bug readiness assessment skill by [@​tidy-dev](https://github.com/tidy-dev) in [#​15149](https://github.com/cli/cli/pull/15149)
##### :dependabot: Dependencies
- chore(deps): bump `charm.land/lipgloss/v2` from 2.1.0 to 2.1.1 by [@​dependabot](https://github.com/dependabot) in [#​15095](https://github.com/cli/cli/pull/15095)
- chore(deps): bump `actions/setup-go` from 7.0.0 to 7.1.0 by [@​dependabot](https://github.com/dependabot) in [#​15117](https://github.com/cli/cli/pull/15117)
- chore(deps): bump `github.com/klauspost/compress` from 1.20.4 to 1.20.5 by [@​dependabot](https://github.com/dependabot) in [#​15140](https://github.com/cli/cli/pull/15140)
- chore(deps): bump the `codeql-actions` group from 4.39.3 to 4.39.4 by [@​dependabot](https://github.com/dependabot) in [#​15142](https://github.com/cli/cli/pull/15142)
- chore(deps): bump `actions/create-github-app-token` from 3.3.0 to 3.4.0 by [@​dependabot](https://github.com/dependabot) in [#​15143](https://github.com/cli/cli/pull/15143)
- chore(deps): bump `charm.land/bubbles/v2` from 2.2.1 to 2.2.2 by [@​dependabot](https://github.com/dependabot) in [#​15144](https://github.com/cli/cli/pull/15144)
- chore(deps): bump `charm.land/bubbletea/v2` from 2.1.1 to 2.1.2 by [@​dependabot](https://github.com/dependabot) in [#​15141](https://github.com/cli/cli/pull/15141)
- chore(deps): bump `github.com/charmbracelet/x/ansi` from 0.11.9 to 0.11.10 by [@​dependabot](https://github.com/dependabot) in [#​15145](https://github.com/cli/cli/pull/15145)
- chore(deps): bump `github.com/gorilla/websocket` from 1.5.3 to 1.5.4-0.20240701034025-d67f41855da4 by [@​BagToad](https://github.com/BagToad) in [#​15157](https://github.com/cli/cli/pull/15157)
**Full Changelog**: <https://github.com/cli/cli/compare/v2.105.0...v2.106.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNjQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjI2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
2.105.0→2.106.0Release Notes
cli/cli
v2.106.0: GitHub CLI 2.106.0Compare Source
Security
Seven security vulnerabilities have been identified and fixed in this release. Users are advised to update
ghto versionv2.106.0as soon as possible.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.
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 logoutnow revokes the selected account's GitHub CLI OAuth token before removing local credentials. Use--no-revoketo preserve the legacy local-only logout, leaving the token valid.ghnow 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 togh auth login,gh auth refresh, and theexpiring_credentialssetting.What's Changed
✨ Features
gh auth logoutby @BagToad in #15100🐛 Fixes
📚 Docs & Chores
cli-exerciseruntime dependencies by @babakks in #15068:dependabot: Dependencies
charm.land/lipgloss/v2from 2.1.0 to 2.1.1 by @dependabot in #15095actions/setup-gofrom 7.0.0 to 7.1.0 by @dependabot in #15117github.com/klauspost/compressfrom 1.20.4 to 1.20.5 by @dependabot in #15140codeql-actionsgroup from 4.39.3 to 4.39.4 by @dependabot in #15142actions/create-github-app-tokenfrom 3.3.0 to 3.4.0 by @dependabot in #15143charm.land/bubbles/v2from 2.2.1 to 2.2.2 by @dependabot in #15144charm.land/bubbletea/v2from 2.1.1 to 2.1.2 by @dependabot in #15141github.com/charmbracelet/x/ansifrom 0.11.9 to 0.11.10 by @dependabot in #15145github.com/gorilla/websocketfrom 1.5.3 to 1.5.4-0.20240701034025-d67f41855da4 by @BagToad in #15157Full Changelog: https://github.com/cli/cli/compare/v2.105.0...v2.106.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.