Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.

GitHub CLI may expose forwarded service to network

published 2 months ago
Summary

Versions of the GitHub command‑line tool (gh) before 2.98.0 open a local listening port to all network interfaces when you use the Codespaces port‑forward feature. This can let anyone on the same network reach the service running in your Codespace, even if the service is meant to be private. Update gh to version 2.98.0 or later to close the open listener.

What to do
  • Update gh to version 2.101.0-1.
Affected software
Ecosystem VendorProductAffected versions
Azure Linux:3 – gh <= 2.98.0-1
< 2.101.0-1
Fix: upgrade to 2.101.0-1
Azure Linux:3 azure gh <= 2.62.0-20
Original advisory text
CVE-2026-72924 affecting package gh for versions less than 2.101.0-1
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.
Timeline
Published25 Aug 2026
Updated23 Sep 2026
First seen29 Aug 2026
Sources
AZL-98198 · OSV
Track software like this
Free during beta