CVE-2026-40171
HIGH 8.4CVSS 4.0Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS
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.
- Published
- 6 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-601CWE-79
- Also known as
- BIT-jupyter-base-notebook-2026-40171BIT-jupyter-notebook-2026-40171BIT-jupyterlab-2026-40171GHSA-rch3-82jr-f9w9PYSEC-2026-2538PYSEC-2026-2682
- Sources
- NVDJSONOSV GHSA-rch3-82jr-f9w9JSONOSV PYSEC-2026-2538JSONOSV PYSEC-2026-2682JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.4 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | 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 | |
| OSV | PyPA | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @jupyter-notebook/help-extension | >= 7.0.0, < 7.5.6 | 7.5.6 |
| OSV | PyPI | notebook | >= 7.0.0, < 7.5.6 | 7.5.6 |
| OSV | PyPI | jupyterlab | < 4.5.7 | 4.5.7 |
| OSV | npm | @jupyterlab/help-extension | < 4.5.7 | 4.5.7 |
References
- https://github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40171 · ADVISORY
- https://github.com/jupyter/notebook · PACKAGE
- https://jupyterlab.readthedocs.io/en/latest/user/commands.html#commands-in-markdown-output-and-files · WEB
- https://pypi.org/project/jupyterlab · PACKAGE
- https://github.com/advisories/GHSA-rch3-82jr-f9w9 · ADVISORY
- https://pypi.org/project/notebook · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Apr 2026)