CVE-2026-40171 Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jupyter-notebook @jupyter-notebook/help-extension(npm) | >= 7.0.0, < 7.5.6 | 7.5.6 |
| pypi notebook(PyPI) | >= 7.0.0, < 7.5.6 | 7.5.6 |
| pypi notebook(PyPI) | = 7.0.0 | No fix listed |
| pypi notebook(PyPI) | = 7.0.1 | No fix listed |
| pypi notebook(PyPI) | = 7.0.2 | No fix listed |
| pypi notebook(PyPI) | = 7.0.3 | No fix listed |
| pypi notebook(PyPI) | = 7.0.4 | No fix listed |
| pypi notebook(PyPI) | = 7.0.5 | No fix listed |
| pypi notebook(PyPI) | = 7.0.6 | No fix listed |
| pypi notebook(PyPI) | = 7.0.7 | No fix listed |
| pypi notebook(PyPI) | = 7.0.8 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0a0 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0a1 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0a2 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0b0 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0rc0 | No fix listed |
| pypi notebook(PyPI) | = 7.1.0rc1 | No fix listed |
| pypi notebook(PyPI) | = 7.1.1 | No fix listed |
| pypi notebook(PyPI) | = 7.1.2 | No fix listed |
| pypi notebook(PyPI) | = 7.1.3 | No fix listed |
| pypi notebook(PyPI) | = 7.2.0 | No fix listed |
| pypi notebook(PyPI) | = 7.2.0a0 | No fix listed |
| pypi notebook(PyPI) | = 7.2.0b0 | No fix listed |
| pypi notebook(PyPI) | = 7.2.0b1 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi notebook(PyPI) | = 7.2.0rc0 | No fix listed |
| pypi notebook(PyPI) | = 7.2.0rc1 | No fix listed |
| pypi notebook(PyPI) | = 7.2.1 | No fix listed |
| pypi notebook(PyPI) | = 7.2.2 | No fix listed |
| pypi notebook(PyPI) | = 7.2.3 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0a0 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0a1 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0b0 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0b1 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0b2 | No fix listed |
| pypi notebook(PyPI) | = 7.3.0rc0 | No fix listed |
| pypi notebook(PyPI) | = 7.3.1 | No fix listed |
| pypi notebook(PyPI) | = 7.3.2 | No fix listed |
| pypi notebook(PyPI) | = 7.3.3 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0a0 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0a1 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0a2 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0a3 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0b0 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0b1 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0b2 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0b3 | No fix listed |
| pypi notebook(PyPI) | = 7.4.0rc0 | No fix listed |
| pypi notebook(PyPI) | = 7.4.1 | No fix listed |
| pypi notebook(PyPI) | = 7.4.2 | No fix listed |
| pypi notebook(PyPI) | = 7.4.3 | No fix listed |
| pypi notebook(PyPI) | = 7.4.4 | No fix listed |
| pypi notebook(PyPI) | = 7.4.5 | No fix listed |
| pypi notebook(PyPI) | = 7.4.6 | No fix listed |
| pypi notebook(PyPI) | = 7.4.7 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0a0 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0a1 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0a2 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0a3 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0b0 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0b1 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0rc0 | No fix listed |
| pypi notebook(PyPI) | = 7.5.0rc1 | No fix listed |
| pypi notebook(PyPI) | = 7.5.1 | No fix listed |
| pypi notebook(PyPI) | = 7.5.2 | No fix listed |
| pypi notebook(PyPI) | = 7.5.3 | No fix listed |
| pypi notebook(PyPI) | = 7.5.4 | No fix listed |
| pypi notebook(PyPI) | = 7.5.5 | No fix listed |
| pypi jupyterlab(PyPI) | < 4.5.7 | 4.5.7 |
| pypi jupyterlab(PyPI) | = 0.0.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.10 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.13 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.6 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.7 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.8 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.0.9 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.1.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.1.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.10.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.11.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.11.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.11.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.11.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.12.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.12.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.13.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.13.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.13.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.14.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.15.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.15.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.16.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.16.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.17.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.17.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.17.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.17.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.17.5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.18.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.18.0.dev1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.18.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.19.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.2.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.20.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0rc2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0rc3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0rc4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.21.0rc5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.22.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.22.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.22.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.23.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.23.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.23.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.23.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.23.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.24.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.24.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.24.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.24.0rc2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.24.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.25.2rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.26.5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.0rc5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.27.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.0rc2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.0rc3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.10 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.11 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.12 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.13 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.14 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.15 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.6 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.7 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.28.8 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.29.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.29.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.29.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.29.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.3.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.3 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.4 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.5 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.30.6 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.0rc0 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.0rc1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.0rc2 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.1 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.10 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.11 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.12 | No fix listed |
| pypi jupyterlab(PyPI) | = 0.31.2 | No fix listed |
References
- https://github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- jupyterlab.readthedocs.io
- pypi.org product
- github.com vendor-advisory
- pypi.org product
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:43038 patch vendor-advisory
- RHSA-2026:65126 patch vendor-advisory
- RHSA-2026:60520 patch vendor-advisory
- Red Hat Bugzilla 2467453 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-40171 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory