{"schema":"threatline.record/2","record":{"id":"CVE-2026-64653","aliases":["GHSA-4fjg-2h4q-fwg3","GO-2026-6765"],"summary":"GitHub CLI allows path traversal through unescaped request URL components","details":"### Summary\n\nA 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.\n\n### Details\n\nNot 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.\n\nIn `2.97.0`, request URLs are constructed in a safe manner, so a variable component can no longer escape its intended segment.\n\n### Impact\n\nAn attacker who can control a value that flows into a request path can cause `gh` 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.\n\n### Remediation and Mitigation\n\n1. Upgrade `gh` to `2.97.0`.\n2. Be cautious when running `gh` against untrusted repositories or inputs whose names you do not control.","categories":["Libraries & packages"],"product":"github.com/cli/cli/v2","vendor":"cli","ecosystem":"go","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-4fjg-2h4q-fwg3","source_modified_at":"2026-10-15T18:07:18Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/cli/cli/v2"},"range":"< 2.97.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-64653","source_modified_at":"2026-08-07T14:54:13.120Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"cli","vendor":"cli","versions":[{"version":"< 2.97.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-4fjg-2h4q-fwg3","source_modified_at":"2026-10-19T21:40:57.702450779Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"Go","name":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"2.97.0"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-4fjg-2h4q-fwg3","source_modified_at":"2026-10-15T18:07:18Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"go","name":"github.com/cli/cli/v2"},"version":"2.97.0"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-4fjg-2h4q-fwg3","source_modified_at":"2026-10-19T21:40:57.702450779Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"Go","name":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2"},"version":"2.97.0"}],"cvss":2.1,"severity":"Low","kev":{"listed":false},"epss":{"probability":0.00511,"percentile":0.42754,"score_date":"2026-10-23"},"published_at":"2026-08-06T17:51:54.344Z","modified_at":"2026-10-19T21:40:57.702450779Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-4fjg-2h4q-fwg3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-15T18:07:18Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-64653","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-08-07T14:54:13.120Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-4fjg-2h4q-fwg3","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-19T21:40:57.702450779Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-64653","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/cli/cli/security/advisories/GHSA-4fjg-2h4q-fwg3","tags":["x_refsource_CONFIRM"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64653","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/cli/cli/commit/0c2eea6338a2323cfff000160b9b5a56a38d2a06","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/cli/cli/releases/tag/v2.97.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-4fjg-2h4q-fwg3","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","assessed_at":"2026-08-07T14:54:02.803787Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T21:40:57.702450779Z","content_hash":"0ea04747ade749a515e52cd9d621fe36f43f00cedb3c99f02d86b6d1c7867251"}}
