Skip to content
Heist/ feed
Back to feed
Low

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-72924
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:13 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 25 Aug 2026, 21:03 UTC

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.

osv:CVE-2026-72924
Complete source record
{
  "id": "57570ca6469850594efe746db026429976657aa0832a3e47e5926cf18b124f22",
  "url": "https://osv.dev/vulnerability/CVE-2026-72924",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "GitHub CLI: `gh codespace ports forward` exposes forwarded services on all network interfaces by default",
    "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 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.",
    "evidence": "osv:CVE-2026-72924",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-72924",
      "aliases": [
        "CVE-2026-72924",
        "GHSA-vfhh-p7hm-pxfh"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cli/cli",
              "type": "GIT",
              "events": [
                {
                  "introduced": "32faa8e5fa7b36019baf273124ff7d54d8c201f6"
                },
                {
                  "fixed": "a255baf71d13fe5947a4eb7ad521ffd412d64cee"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.28.0"
                      },
                      {
                        "fixed": "2.98.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a255baf71d13fe5947a4eb7ad521ffd412d64cee"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.98.0"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72924.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.581931564Z",
      "provider": "osv",
      "references": [
        "https://github.com/cli/cli/releases/tag/v2.98.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72924.json",
        "https://github.com/cli/cli/security/advisories/GHSA-vfhh-p7hm-pxfh",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72924"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1327",
          "CWE-668"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72924.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72924",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499564,
  "published_at": "2026-08-25T21:03:11.56+00:00"
}