Skip to main content
← All vulnerabilities
CVE-2026-64653GHSA-4FJG-2H4Q-FWG3GO-2026-6765

GitHub CLI: Unescaped variable components in request URLs could allow path traversal

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.97.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.97.0, some HTTP request URLs interpolate variable path components without percent encoding, allowing URL path metacharacters in attacker-controlled repository or resource values to make gh address a different API endpoint or resource than the user intended. This issue is fixed in version 2.97.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cli cli

    fixed in 2.97.0

  • github.com/cli/cli/v2Go

    fixed in 2.97.0

  • github.com/cli/cliGo

    All versions

References 3

GitHub · cli/cli