CVE-2026-40171
Published:May 06, 2026
Updated:May 16, 2026
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 Packages
jupyterlab (CONDA):
Affected version(s) >=0.0.5 <4.5.7Fix Suggestion:
Update to version 4.5.7notebook (CONDA):
Affected version(s) >=7.0.0 <7.5.6Fix Suggestion:
Update to version 7.5.6https://github.com/jupyter/notebook.git (GITHUB):
Affected version(s) >=v7.0.0 <v7.5.6Fix Suggestion:
Update to version v7.5.6https://github.com/jupyterlab/jupyterlab.git (GITHUB):
Affected version(s) >=v <v4.5.7Fix Suggestion:
Update to version v4.5.7@jupyter-notebook/help-extension (NPM):
Affected version(s) >=7.0.0 <7.5.6Fix Suggestion:
Update to version 7.5.6@jupyterlab/help-extension (NPM):
Affected version(s) >=0.1.1 <4.5.7Fix Suggestion:
Update to version 4.5.7@jupyterlab/help-extension (NPM):
Affected version(s) >=0.1.1 <4.5.7Fix Suggestion:
Update to version 4.5.7jupyterlab (PYTHON):
Affected version(s) >=0.0.1 <4.5.7Fix Suggestion:
Update to version 4.5.7jupyterlab (PYTHON):
Affected version(s) >=0.0.1 <4.5.7Fix Suggestion:
Update to version 4.5.7notebook (PYTHON):
Affected version(s) >=7.0.0 <7.5.6Fix Suggestion:
Update to version 7.5.6Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
HIGH
User Interaction
ACTIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
HIGH
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.13