[ CVE-2026-64653 · Published 6 Aug 2026 ]
GitHub CLI allows path traversal through unescaped request URL components
CVSS 5.1
EPSS <1%Fix available
[ Description ]Official description
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.
[ Fixes ]Fixes and patches
- github.com/cli/cli/v2 2.97.0Fixed version · GitHub Advisories · go package github.com/cli/cli/v2: upgrade to 2.97.0 or later (affected < 2.97.0)
[ Packages ]Affected open-source packages
- github.com/cli/cli/v2 goAffected < 2.97.0 · fixed in 2.97.0 · GHSA-4fjg-2h4q-fwg3
[ References ]References
- github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3x_refsource_CONFIRM
- github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06x_refsource_MISC
- github.com/cli/cli/releases/tag/v2.97.0x_refsource_MISC