CVE Catalog

CVE-2026-40171

High
Published: Translated: NVD NIST

Summary

In Jupyter Notebook versions 7.0.0 through 7.5.5 and JupyterLab versions up to 4.5.6, there is a stored cross-site scripting issue in the help command linker that can be exploited to steal authentication tokens. An attacker can craft a malicious notebook file that triggers unauthorized actions when the user interacts with it.

Risk Assessment

Exploitation of this vulnerability can lead to the takeover of a Jupyter session by an attacker, allowing access to files, modification of data, and execution of arbitrary code. This poses a serious threat to user data security.

Recommendation

It is recommended to upgrade to Notebook 7.5.6, JupyterLab 4.5.7, and the corresponding packages to mitigate this vulnerability. If upgrading is not possible, consider restricting access to malicious notebook files.

Related vulnerabilities

Original NVD description (English source)

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, disa

Vulnerability data from NVD (NIST) · CISA KEV · EPSS