Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-72924 EUVD-2026-66116

GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network interfaces by default

Published Aug 25, 2026 · Updated Aug 26, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 13 gh No fix yet —
Debian 12 gh No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 gh No fix yet —
Ubuntu 22.04 LTS gh No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gh No fix yet —
Ubuntu Pro 24.04 LTS gh No fix yet —
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 gh 2.101.0-1 —

Advisories 2

References