CVE-2026-40171
Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker
描述
In Jupyter Notebook versions 7.0.0 through 7.5.5, JupyterLab versions 4.5.6 and earlier, and the corresponding @jupyter-notebook/help-extension and @jupyterlab/help-extension packages before 7.5.6 and 4.5.7, a stored cross-site scripting issue in the help command linker can be chained with attacker-controlled notebook content to steal authentication tokens with a single click. An attacker can craft a malicious notebook file containing elements that appear indistinguishable from legitimate controls and trigger execution when a user interacts with them. Successful exploitation allows theft of the user's authentication token and complete takeover of the Jupyter session through the REST API, including reading files, creating or modifying files, accessing kernels to execute arbitrary code, and creating terminals for shell access. This issue has been fixed in Notebook 7.5.6, JupyterLab 4.5.7, @jupyter-notebook/help-extension 7.5.6, and @jupyterlab/help-extension 4.5.7. As a workaround, disable the affected help extensions or set allowCommandLinker to false in the sanitizer configuration.
如何修補 CVE-2026-40171
要修補 CVE-2026-40171,請將受影響套件升級到下列已修補版本。
- —升級至 7.5.6 或更新版本
- —升級至 7.5.6 或更新版本
- —升級至 4.5.7 或更新版本
- —升級至 4.5.7 或更新版本
- —升級至 4.5.7 或更新版本
- —升級至 7.5.6 或更新版本
- —升級至 7.5.6 或更新版本
- —升級至 7.5.6 或更新版本
- —升級至 4.5.7 或更新版本
CVE-2026-40171 正在被利用嗎?
低 — EPSS 為 0.5%,目前沒有觀察到大規模利用活動。
受影響套件(9)
- >= 7.0.0, < 7.5.6
- >= 7.0.0, < 7.5.6
- from 0, < 4.5.7
- from 0, < 4.5.7
- from 0, < 4.5.7
- >= 7.0.0, < 7.5.6
- >= 7.0.0, < 7.5.6
- >= 7.0.0, < 7.5.6
- from 0, < 4.5.7
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |