Low severity · published Aug 25, 2026
CVE-2026-72924
GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network interfaces by default
2.1
CVSS
0.3%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 17% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CL
cli · cli
>= 2.28.0, < 2.98.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-72924
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-72924
github.com
https://github.com/cli/cli/releases/tag/v2.98.0
github.com
https://github.com/cli/cli/security/advisories/GHSA-vfhh-p7hm-pxfh
More from cli
9.6
CVE-2024-52308
Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer
9.1
CVE-2026-48501
GitHub CLI tokens leak via `gh attestation` commands
6.5
CVE-2024-53858
Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in the gh cli
6.3
CVE-2025-25204
`gh attestation verify` returns incorrect exit code during verification if no attestations are present
6.3
CVE-2024-54132
GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability
