CVE-2026-40171
NoneCVSS
—
EPSS
0.7%
Published
May 6, 2026
CISA due date
—
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | jupyterlab | 0 | 4.5.7 |
| PyPI | notebook | 7.0.0 | 7.5.6 |
| npm | @jupyter-notebook/help-extension | 7.0.0 | 7.5.6 |
| npm | @jupyterlab/help-extension | 0 | 4.5.7 |
| openSUSE:Tumbleweed | python-jupyterlab | 0 | 4.5.7-1.1 |
| openSUSE:Tumbleweed | python-notebook | 0 | 7.5.6-1.1 |
Related vulnerabilities
- GHSA-rch3-82jr-f9w9 Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS Same vulnerability
- CVE-2026-42557 jupyterlab is an extensible environment for interactive and reproducible computing, based… Also affects python-jupyterlab
- CVE-2026-42266 JupyterLab is an extensible environment for interactive and reproducible computing, based… Also affects python-jupyterlab
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96362 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79