Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cli/cli/v2
  4. ›
  5. CVE-2026-64653

CVE-2026-64653: GitHub CLI allows path traversal through unescaped request URL components

October 15, 2026

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.

References

  • github.com/advisories/GHSA-4fjg-2h4q-fwg3
  • github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06
  • github.com/cli/cli/releases/tag/v2.97.0
  • github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3
  • nvd.nist.gov/vuln/detail/CVE-2026-64653

Code Behaviors & Features

Detect and mitigate CVE-2026-64653 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.97.0

Fixed versions

  • 2.97.0

Solution

Upgrade to version 2.97.0 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/cli/cli/v2/CVE-2026-64653.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 13 Nov 2026 00:16:54 +0000.