{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-59831",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-07-07T15:00:50.979Z",
        "datePublished": "2026-07-09T22:11:05.418Z",
        "dateUpdated": "2026-07-14T01:20:59.985Z"
    },
    "containers": {
        "cna": {
            "title": "GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-829",
                            "lang": "en",
                            "description": "CWE-829: Inclusion of Functionality from Untrusted Control Sphere",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.4,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/cli/cli/security/advisories/GHSA-8cg3-r6g9-fpg2"
                },
                {
                    "name": "https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cli/cli/commit/b300f2ec7ec9dc9addc39b2ad88c54097ded7ca0"
                },
                {
                    "name": "https://github.com/cli/cli/releases/tag/v2.96.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/cli/cli/releases/tag/v2.96.0"
                }
            ],
            "affected": [
                {
                    "vendor": "cli",
                    "product": "cli",
                    "versions": [
                        {
                            "version": ">= 2.10.0, < 2.96.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-07-09T22:11:05.418Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-8cg3-r6g9-fpg2",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-07-14T01:20:49.738308Z",
                                "id": "CVE-2026-59831",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-07-14T01:20:59.985Z"
                }
            }
        ]
    }
}