CVE-2026-64653: GitHub CLI: Unescaped variable components in request URLs could allow path traversal

Published Aug 6, 2026
·
Updated

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.

Other sources

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

Microsoft

Affected Software

2 affected componentsFixes available
GitHub GitHub CLI (gh)<2.97.0
Microsoft azl3 gh 2.62.0-20<2.97.0-1
2.97.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.97.0-1
  2. Upgrade

    Upgrade GitHub CLI (gh) to a version that resolves this vulnerability.

    Fixed in 2.97.0

Event History

Aug 6, 2026
CVE Published
via MITRE·05:51 PM
Data Sourced
via MITRE·05:51 PM
DescriptionWeakness
Data Sourced
via NVD·10:18 PM
DescriptionSeverityWeakness
Aug 11, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-64653?

The severity of CVE-2026-64653 is rated as risk 33.

2

How do I fix CVE-2026-64653?

To fix CVE-2026-64653, update the GitHub CLI (gh) to version 2.97.0 or higher.

3

What is CVE-2026-64653 about?

CVE-2026-64653 involves unescaped variable components in request URLs in GitHub CLI, which can allow path traversal.

4

Which versions of GitHub CLI are affected by CVE-2026-64653?

Versions of GitHub CLI prior to 2.97.0 are affected by CVE-2026-64653.

5

What type of vulnerability is CVE-2026-64653 classified as?

CVE-2026-64653 is classified as a Path Traversal vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203