---
id: CVE-2026-72924
title: GitHub CLI (gh) is GitHub's official command line tool
summary: >-
  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 servi…
severity: none
cwe:
  - CWE-668
  - CWE-1327
published: '2026-08-25'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:07:31.353'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72924'
references:
  - url: 'https://github.com/cli/cli/releases/tag/v2.98.0'
    label: security-advisories@github.com
  - url: 'https://github.com/cli/cli/security/advisories/GHSA-vfhh-p7hm-pxfh'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00257
epssPercentile: 0.15515
ingestedAt: '2026-09-09T21:22:45.553Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
