{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-59831 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-59831 is a medium-severity code injection vulnerability in cli, published on 9 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-59831 and fix it if it is affected.\n\nWhat it is: CVE-2026-59831 is a medium-severity code injection vulnerability in cli, published on 9 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-59831 in the wild and no public exploit code.\n\nAffected product: cli. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-59831/ (Markdown: https://insights.sbomify.com/CVE-2026-59831/index.md)","id":"CVE-2026-59831","markdown":"https://insights.sbomify.com/CVE-2026-59831/index.md","name":"CVE-2026-59831","record":{"aliases":["AZL-92328","DEBIAN-CVE-2026-59831","GHSA-8cg3-r6g9-fpg2","UBUNTU-CVE-2026-59831"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GitHub CLI","requires_auth":"low_privilege","summary":"GitHub CLI allows remote code execution when connecting to a malicious Codespace due to insufficient validation of JupyterLab URLs.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"description":"GitHub CLI (gh) is GitHub’s official command line tool. From 2.10.0 through 2.95.0, connecting to a malicious Codespace with gh codespace jupyter can allow command execution because the command opens a JupyterLab URL supplied by a process inside the Codespace without validating that it is a loopback HTTP or HTTPS address, allowing a crafted vscode:// or vscode-insiders:// URL to be handed to VS Code. This issue is fixed in version 2.96.0.","ecosystems":[],"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 `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace","id":"CVE-2026-59831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":3,"next":{"headline":"Siyuan: Authenticated path traversal in /snippets/ static handler (serveSnippets) leaks conf/conf.json secrets and siyuan.db","id":"CVE-2026-59832"},"packages":[],"prev":{"headline":"Discourse: Stored XSS via unescaped actor name in post actions","id":"CVE-2026-59830"},"products":["cli"],"published":"2026-07-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"partial"},"state":"PUBLISHED","updated":"2026-07-14","vendors":["cli"]},"summary":"GitHub CLI allows remote code execution when connecting to a malicious Codespace due to insufficient validation of JupyterLab URLs.","url":"https://insights.sbomify.com/CVE-2026-59831/"}