8.4

CVE-2026-40171: Jupyter Notebook and JupyterLab token theft via stored XSS in help command linker

Awaiting analysis
AliasesGHSA-rch3-82jr-f9w9BIT-jupyter-base-notebook-2026-40171BIT-jupyter-notebook-2026-40171
Published 06-05-2026Last modified 08-05-2026

Vulnerability summary

CVE-2026-40171 is a high (CVSS 8.4) vulnerability in jupyter-notebook help-extension. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 50.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.4, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.4/10
010
High · v4.0 (CVE.org)
EPSS score
0.60%
0%100%
Low · +0.12 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2 · Related 3

Timeline

  1. 06-05-2026
    PublishedVulnerability first disclosed.
  2. 08-05-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

9 scores · 9 sources · 1 version

EPSS trend

Probability

0.60%

Chance of exploitation in the next 30 days

Percentile

50%

Versus all other CVEs

30-day change

Increase +0.12 pp

From 0.48% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard5 products
  • datahub-ingestion< 1.5.0.4-r0
  • datahub-ingestion-fips< 1.5.0.1-r1
  • jupyter-base-notebook< 7.5.6-r0
  • tensorflow-cpu-jupyter< 2.21.0-r2
  • tensorflow-gpu-jupyter< 2.21.0-r2
Debian2 products
  • jupyter-notebook< 7.4.7-3
  • jupyterlabAll versions (No fix recorded) | < 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3
Jupyterlab2 products
PyPI2 products
  • jupyterlab< 4.5.7
  • notebook≥ 7.0.0, < 7.5.6
@jupyter-notebook1 product
  • help-extension≥ 7.0.0, < 7.5.6
@jupyterlab1 product
  • help-extension< 4.5.7
Alpine1 product
  • jupyter-notebook< 7.5.6-r0
Jupyter1 product
Jupyter-notebook1 product
Ubuntu1 product
  • jupyter-notebookAll versions (No fix recorded)
Wolfi1 product
  • jupyter-base-notebook< 7.5.6-r0

11 vendors · 18 products

References

12 links
Show all 12 references