Vulnerabilities

Vulnerability · CVE-2026-64653

GitHub CLI allows path traversal through unescaped request URL components

Published Oct 15, 2026 · catalog updated Oct 15, 2026 · GitHub CLI allows path

Check if you run it

No confirmed exploitation is on record for CVE-2026-64653. EPSS is 0.51%. Act only if a listed version of GitHub CLI allows path is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (GitHub CLI allows path).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Low—
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.51%
Remediation
Version ranges on file
Affected products
Go github.com/cli/cli/v2 · go github.com/cli/cli/v2 · golang github.com

### Summary A path traversal vulnerability has been identified in the GitHub CLI where some HTTP request URLs, REST API calls in particular, were built without properly escaping their variable path components. A value containing URL path metacharacters can alter the request path and cause to address a different resource than intended. ### Details Not all request URLs in the codebase were built with proper escaping of their variable path components. When a component is interpolated into the path without percent encoding, and that component contains URL path metacharacters, it breaks out of its intended segment and changes the effective request path. In , request URLs are constructed in a safe manner, so a variable component can no longer escape its intended segment. ### Impact An attacker who can control a value that flows into a request path can cause to send the request to a different API endpoint than intended. This can lead the CLI to read or act on a resource other than the one the user meant to target. ### Remediation and Mitigation 1. Upgrade to . 2. Be cautious when running against untrusted repositories or inputs whose names you do not control.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Go github.com/cli/cli/v20 → 2.97.0
  • go github.com/cli/cli/v2< 2.97.0
  • golang github.comversion unspecified

How to fix CVE-2026-64653

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-64653. EPSS is 0.51%. Act only if a listed version of GitHub CLI allows path is installed.

Which versions are affected?

Compare what you have installed with 0 → 2.97.0, < 2.97.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-22: Path Traversal. EPSS 0.51%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 15, 2026 · GitHub Advisory Database

    Detected

    ### Summary A path traversal vulnerability has been identified in the GitHub CLI where some HTTP request URLs, REST API calls in particular, were built without properly escaping their variable path components. A value containing URL path metacharacters can alter the request path and cause to address a different resource than intended. ### Details Not all request URLs in the codebase were built wit

  2. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    github.com/cli/cli/v2 fixed in 2.97.0

  3. Oct 15, 2026 · GitHub Advisory Database

    Fix available

    github.com/cli/cli/v2 fixed in 2.97.0

  4. Oct 15, 2026 · GitHub Advisory Database

    Updated

    ### Summary A path traversal vulnerability has been identified in the GitHub CLI where some HTTP request URLs, REST API calls in particular, were built without properly escaping their variable path components. A value containing URL path metacharacters can alter the request path and cause to address a different resource than intended. ### Details Not all request URLs in the codebase were built wit

Sources

  • CVE.orgVulnerability recordCVE-2026-64653

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-64653

    30-day exploitation probability 0.5%

    first.org
  • GitHub Advisory DatabasePackage advisoryGHSA-4fjg-2h4q-fwg3

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisoryCVE-2026-64653

    A path traversal vulnerability has been identified in the GitHub CLI where some HTTP request URLs, REST API calls in particular, were built without properly escaping their variable path components. A value containing URL path metacharacters can alter the request path and cause gh to address a different resource than intended.

    advisories.gitlab.com
  • OpenSSF OSV / OSV ScannerPackage advisoryGHSA-4fjg-2h4q-fwg3

    GitHub CLI allows path traversal through unescaped request URL components

    osv.dev

References

Freshness

Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.