CVE-2026-72924

published 25 Aug 2026 · updated 19 Sep 2026

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

2.1LowCVSS 2.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cli>=2.28.0 <2.98.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-72924 severity on Zeptric[![CVE-2026-72924](https://zeptric.io/badge/cve/CVE-2026-72924.svg)](https://zeptric.io/cve/CVE-2026-72924)