CVE-2026-40171

NameCVE-2026-40171
DescriptionIn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jupyter-notebook (PTS)bullseye6.2.0-1vulnerable
bookworm6.4.12-2.2vulnerable
trixie6.4.13-5vulnerable
forky, sid7.0.0-2vulnerable
jupyterlab (PTS)trixie4.0.11+ds1+~cs11.25.27-7vulnerable
forky4.0.11+ds5+~cs11.25.27-1vulnerable
sid4.0.13+ds1+~2.0.1+~cs1.4.4-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jupyter-notebooksource(unstable)(unfixed)
jupyterlabsource(unstable)(unfixed)

Notes

https://github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9

Search for package or bug name: Reporting problems