CVE-2026-40171jupyter notebook
High 8.4
Follow: this CVE · jupyter · jupyter notebook We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 4.0
- 8.4
- EPSS
- —
- Auth required
- Yes
- Published
- May 6, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
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
What happens
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.
What to do
- Apply the vendor's security update for notebook.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | jupyterlab |
< 4.5.7 |
4.5.7 |
pip install "jupyterlab>=4.5.7" |
| PyPI | jupyterlab |
< 4.5.7 |
4.5.7 |
pip install "jupyterlab>=4.5.7" |
| PyPI | notebook |
≥ 7.0.0 < 7.5.6 |
7.5.6 |
pip install "notebook>=7.5.6" |
| PyPI | notebook |
≥ 7.0.0 < 7.5.6 |
7.5.6 |
pip install "notebook>=7.5.6" |
| npm | @jupyter-notebook/help-extension |
≥ 7.0.0 < 7.5.6 |
7.5.6 |
npm install @jupyter-notebook/help-extension@7.5.6 |
| npm | @jupyterlab/help-extension |
< 4.5.7 |
4.5.7 |
npm install @jupyterlab/help-extension@4.5.7 |
Per OSV / GitHub Advisories (GHSA-rch3-82jr-f9w9, PYSEC-2026-2538, PYSEC-2026-2682). Check the version in your lockfile before upgrading.
Affected products
- jupyter · notebook
- jupyterlab · help-extension
- jupyterlab · jupyterlab
- jupyter-notebook · help-extension
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- jupyter-jupyterlab-4.5.7-1.1 on GA media · SUSE · openSUSE-SU-2026:10748-1 · May 11, 2026 High
- jupyter-notebook-7.5.6-1.1 on GA media · SUSE · openSUSE-SU-2026:10749-1 · May 11, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.