CVSS 4.0
8.4 highCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NHigh (8.4). EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in @jupyter-notebook/help-extension 7.5.6.
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@jupyter-notebook/help-extension (npm): fixed in 7.5.6notebook (PyPI): fixed in 7.5.6jupyterlab (PyPI): fixed in 4.5.7@jupyterlab/help-extension (npm): fixed in 4.5.7Explain CVE-2026-40171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40171?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40171?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40171 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| jupyter notebook | >=7.0.0, <= 7.5.5 |
| jupyterlab help-extension | <=4.5.6 |
| jupyterlab | <= 4.5.6 |
| jupyter-notebook help-extension | >=7.0.0,<= 7.5.5 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-rch3-82jr-f9w9 | npm | @jupyter-notebook/help-extension | >=7.0.0 <7.5.6 | 7.5.6 |
| GHSA-rch3-82jr-f9w9 | PyPI | notebook | >=7.0.0 <7.5.6 | 7.5.6 |
| GHSA-rch3-82jr-f9w9 | PyPI | jupyterlab | <4.5.7 | 4.5.7 |
| GHSA-rch3-82jr-f9w9 | npm | @jupyterlab/help-extension | <4.5.7 | 4.5.7 |
| PYSEC-2026-2538 | PyPI | jupyterlab | <4.5.7 | 4.5.7 |
| PYSEC-2026-2682 | PyPI | notebook | >=7.0.0 <7.5.6 | 7.5.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | jupyterlab | no fix listed | DEBIAN-CVE-2026-40171 |
| Debian | 14 | jupyter-notebook | 7.4.7-3 | DEBIAN-CVE-2026-40171 |
| Debian | 14 | jupyterlab | 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3 | DEBIAN-CVE-2026-40171 |
| Ubuntu | 25.10, 26.10 | jupyter-notebook | no fix listed | UBUNTU-CVE-2026-40171 |
| openSUSE | Tumbleweed | python-jupyterlab | 4.5.7-1.1 | openSUSE-SU-2026:10748-1 |
| openSUSE | Tumbleweed | python-notebook | 7.5.6-1.1 | openSUSE-SU-2026:10749-1 |
| Alpine | v3.24 | jupyter-notebook | 7.5.6-r0 | ALPINE-CVE-2026-40171 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.
Red Hat rates this Important.
This is an Important flaw in Jupyter Notebook and JupyterLab, enabling a stored cross-site scripting (XSS) attack. An attacker can craft a malicious notebook that, with a single user click, can steal authentication tokens and fully compromise the Jupyter session, leading to arbitrary code execution and information disclosure. This impacts Red Hat OpenShift AI and Migration Toolkit for Applications.
To reduce the risk of exploitation, disable the affected help extensions in Jupyter Notebook and JupyterLab, or set the `allowCommandLinker` option to `false` within the sanitizer configuration. Consult the Jupyter documentation for specific instructions on modifying these settings. Disabling these features may affect the availability of certain help functionalities.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Migration Toolkit for Applications 8.2 | mta/mta-solution-server-rhel9:1784109883 | Fixed 2026-07-21 | RHSA-2026:43038 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1788315638 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1788185839 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1788185798 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1788185733 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9:1788185436 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-pytorch-llmcompressor-cuda-py312-rhel9:1788185842 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9:1788185848 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1788186007 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1788185846 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 2.25 | rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9:1788185899 | Fixed 2026-09-08 | RHSA-2026:65126 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-th06-cpu-torch210-py312-rhel9:1787076778 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9:1787074331 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9:1787073913 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9:1787074078 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI 3.4 | rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9:1787073929 | Fixed 2026-08-27 | RHSA-2026:60520 |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-th06-cpu-torch291-py312-rhel9 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-th06-cuda130-torch291-py312-rhel9 | Not affected | |
| 5 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40171.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.