{"answers":{"affected":"4 open source packages ship an affected version, including github.com/cli/cli/v2 and github.com/cli/cli. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-48501 in the wild and no public exploit code.","fix":"Upgrade github.com/cli/cli/v2 to 2.93.0 or later.","what":"CVE-2026-48501 is a high-severity vulnerability in cli, published on 29 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48501 and fix it if it is affected.\n\nWhat it is: CVE-2026-48501 is a high-severity vulnerability in cli, published on 29 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-48501 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.93.0\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.93.0\n- github.com/cli/cli/v2 (Go): affected all versions; fixed in 2.93.0\n- github.com/cli/cli (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48501/ (Markdown: https://insights.sbomify.com/CVE-2026-48501/index.md)","id":"CVE-2026-48501","markdown":"https://insights.sbomify.com/CVE-2026-48501/index.md","name":"CVE-2026-48501","record":{"aliases":["DEBIAN-CVE-2026-48501","GHSA-8xvp-7hj6-mcj9","GO-2026-5271"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub CLI","requires_auth":"none","summary":"GitHub CLI leaks user authentication tokens to external TUF mirrors and storage hosts due to flawed host detection in attestation commands.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cli","vendor":"github"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"GitHub CLI (gh) is GitHub’s official command line tool. Prior to 2.93.0, GitHub CLI incorrectly includes authorization header in API requests to TUF repository mirrors via gh attestation, gh release verify, and gh release verify-asset commands. The CLI uses a shared HTTP client with an authentication layer that automatically attaches tokens to outgoing requests. This layer lacks accurate host detection and can incorrectly attribute the target host, providing it with a token it should never receive. Specifically, the host normalization logic collapses any *.github.com subdomain to github.com, so a request to tuf-repo.github.com (a GitHub Pages site, not a GitHub API endpoint) is treated as a request to github.com and receives the user's github.com token. For hosts that don't match github.com or a known GHES instance at all, the resolver falls back to GH_ENTERPRISE_TOKEN if set. The gh attestation, gh release verify and gh release verify-asset commands fetch data from several external hosts as part of their normal operation (TUF metadata from tuf-repo.github.com and tuf-repo-cdn.sigstore.dev, artifact bundles from Azure Blob Storage). Because these requests go through the same authenticated HTTP client, the token is sent to all of them. This vulnerability is fixed in 2.93.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"GitHub CLI tokens leak via `gh attestation` commands","id":"CVE-2026-48501","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":4,"n_references":1,"next":{"headline":"MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap overflows","id":"CVE-2026-48502"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli","purl":"pkg:golang/github.com/cli/cli","source":"GO-2026-5271"},{"ecosystem":"Go","fixed":["2.93.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":null,"source":"GHSA-8xvp-7hj6-mcj9"},{"ecosystem":"Go","fixed":["2.93.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GHSA-8xvp-7hj6-mcj9"},{"ecosystem":"Go","fixed":["2.93.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cli/cli/v2","purl":"pkg:golang/github.com/cli/cli/v2","source":"GO-2026-5271"}],"prev":{"headline":"Filament: Unauthenticated temporary file upload on auth pages","id":"CVE-2026-48500"},"products":["cli"],"published":"2026-05-29","related":[{"cvss_score":8,"headline":"Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer","id":"CVE-2024-52308","kev_date_added":null,"published":"2024-11-14"},{"cvss_score":3.5,"headline":"gh: GitHub Actions log output in `gh run view` allows terminal escape sequence injection","id":"CVE-2026-45803","kev_date_added":null,"published":"2026-05-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-29","vendors":["cli"]},"summary":"GitHub CLI leaks user authentication tokens to external TUF mirrors and storage hosts due to flawed host detection in attestation commands.","url":"https://insights.sbomify.com/CVE-2026-48501/"}