Description
GitHub CLI (gh) is GitHub's official command line tool. Versions 2.28.0 through 2.97.0 bind the local listener created by gh codespace ports forward to all available network interfaces by default. While port forwarding is active, a service in a Codespace can therefore become reachable through the user's non-loopback local IP addresses by other hosts that can route to the user's machine. This behavior does not change the GitHub-side visibility of the Codespaces port. Instead, it exposes the forwarded service through a wildcard-bound listener on the user's local machine, even when the source Codespaces port remains private. Exploitation requires a network-adjacent attacker to reach the victim's machine while forwarding is active. This issue is fixed in version 2.98.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| cli | cli | >= 2.28.0, < 2.98.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | gh | No fix yet | — |
| Debian 12 | gh | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | gh | No fix yet | — |
| Ubuntu 22.04 LTS | gh | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | gh | No fix yet | — |
| Ubuntu Pro 24.04 LTS | gh | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gh | 2.102.0-1.1 | openSUSE-SU-2026:12163-1 |
| openSUSE Leap 16.0 | gh | 2.102.0-bp160.1.1 | openSUSE-SU-2026:22134-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gh | 2.101.0-1 | — |
Advisories 2
- openSUSE-SU-2026:22134-1 Security update for gh SUSE / openSUSE Security Updates · Oct 20, 2026
- openSUSE-SU-2026:12163-1 gh-2.102.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 18, 2026