PoC Monitor
← All CVEs
CVE-2026-40171published 6 May 2026 19:36 UTCData: JSON · API

Jupyter Notebook

Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.4high · scored by CNA · CWE-79
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record, GitHub Security Advisories and the vendor's references.

Affected

jupyter notebook
  • >=7.0.0, <= 7.5.5
jupyterlab help-extension
  • <=4.5.6
jupyterlab jupyterlab
  • <= 4.5.6
jupyter-notebook help-extension
  • >=7.0.0,<= 7.5.5
@jupyter-notebook/help-extension (npm)
  • >= 7.0.0, < 7.5.6

Fixed in 7.5.6

from GitHub Security Advisory GHSA-rch3-82jr-f9w9

notebook (PyPI)
  • >= 7.0.0, < 7.5.6

Fixed in 7.5.6

from GitHub Security Advisory GHSA-rch3-82jr-f9w9

jupyterlab (PyPI)
  • < 4.5.7

Fixed in 4.5.7

from GitHub Security Advisory GHSA-rch3-82jr-f9w9

@jupyterlab/help-extension (npm)
  • < 4.5.7

Fixed in 4.5.7

from GitHub Security Advisory GHSA-rch3-82jr-f9w9

Mitigation

Upgrade @jupyter-notebook/help-extension to 7.5.6 or later.

Upgrade notebook to 7.5.6 or later.

Upgrade jupyterlab to 4.5.7 or later.

Upgrade @jupyterlab/help-extension to 4.5.7 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published6 May 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.