{"schemaVersion":3,"id":"CVE-2026-59831","aliases":["UBUNTU-CVE-2026-59831","DEBIAN-CVE-2026-59831"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-07-09T22:11:05.418Z","modified":"2026-07-14T01:20:59.985Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":3.3,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":3.3,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00326,"percentile":0.24292,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00326},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00326,"percentile":0.24292}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00326,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00326,"percentile":0.24292}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere","description":"The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/829.html"}],"affected":[{"vendor":"cli","product":"cli","name":"cli","label":"cli","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.10.0, < 2.96.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.10.0, < 2.96.0","eol":null,"hubHref":"/vendor/cli/cli"},{"vendor":"debian","product":"gh","name":"gh","label":"gh","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/gh","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gh","name":"gh","label":"gh","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gh","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2","label":"github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0","label":"github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/cli/cli/releases/tag/v2.96.0","label":"github.com/cli/cli/releases/tag/v2.96.0","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-59831","label":"ubuntu.com/security/CVE-2026-59831","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-59831","label":"www.cve.org/CVERecord?id=CVE-2026-59831","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-59831","label":"security-tracker.debian.org/tracker/CVE-2026-59831","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59831","label":"nvd.nist.gov/vuln/detail/CVE-2026-59831","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12163-1","OPENSUSE-SU-2026:22134-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12163-1","OPENSUSE-SU-2026:22134-1"]},"timeline":[{"kind":"published","date":"2026-07-09T22:11:05.418Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-14T01:20:59.985Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T12:06:45.714Z","stale":false,"partial":false}}