CVE Catalog

CVE-2026-40171

HighCVSS 8.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

41th percentile - higher than 41% of all known CVEs

Summary

In Jupyter Notebook versions 7.0.0 through 7.5.5, JupyterLab 4.5.6 and earlier, and the corresponding help-extension packages, a stored XSS in the help command linker can be chained with attacker-controlled notebook content to steal authentication tokens with a single click. Successful exploitation allows complete takeover of the Jupyter session, including file access, code execution, and terminal access.

Risk Assessment

An attacker can steal a user's authentication token and take over their Jupyter session, leading to unauthorized data access and code execution.

Recommendation

Upgrade Jupyter Notebook to 7.5.6, JupyterLab to 4.5.7, and the help-extension packages to the corresponding versions. As a workaround, disable the affected help extensions or set allowCommandLinker to false.

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, disable the affected help extensions or set allowCommandLinker to false in the sanitizer configuration.

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