本文へ移動
English version →
中 4.4

GitHub CLI `gh codespace jupyter` could allow remote code execution when connecting to a malicious Codespace

CVE-2026-59831 SecPulse初出

概要

脆弱性 (CVE-2026-59831) が報告されています。不正な操作・情報露出のリスクがあります。

自動生成の要約

取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。

CVE-2026-59831 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 4.4/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「CVE-2026-59831」を検索してください。

CVE-2026-59831 — CWE-829 / CVSS v3 4.4
攻撃ベクター: ネットワーク経由 (リモート攻撃可)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

脆弱性 (CWE-829) が報告されています。

影響範囲

影響バージョンはベンダーのアドバイザリで確認してください。

重要度

重要度: 中 (CVSS 4.4/10)。不正な操作・情報露出のリスクがあります。

修正方法

ベンダー公式アドバイザリの修正版に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで影響コンポーネントを特定する。

  2. 2
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
gogithub.com/cli/cli/v2
2.10.0 以上 2.96.0 未満→ 2.96.0

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。

原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

A security vulnerability has been identified in GitHub CLI that could allow remote code execution when users connect to a malicious Codespace using the gh codespace jupyter command. The command opens JupyterLab by launching a URL in the user's browser, but that URL is supplied by a process running inside the Codespace and the CLI opens it without validating it.

The browser launcher accepts vscode:// and vscode-insiders:// links, so a malicious Codespace can return a crafted vscode:// URL. The CLI opens the link, the operating system hands it to VS Code, and VS Code acts on it, which can lead to code execution on the user's workstation.

This is a variant of CVE-2024-52308. That remediation validated the SSH connection details for gh codespace ssh and gh codespace logs, but did not cover the equivalent Jupyter code path.

Details

The vulnerability stems from the way GitHub CLI handles the server URL returned when starting a remote JupyterLab server:

  1. A user runs gh codespace jupyter -c , expecting a normal https:// JupyterLab page.
  2. The CLI retrieves a server URL from a process inside the Codespace and opens it in the user's browser without confirming that it is a web address.
  3. A malicious Codespace returns a vscode:// link in place of the expected JupyterLab address. The operating system passes the link to VS Code.
  4. VS Code acts on the link. With a single trust prompt, this can…

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく