ADVISORIES

Vulnerability

CVE-2026-40171

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.

25 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • ALPINE-CVE-2026-40171

    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…

    CVE-2026-40171 Alpine Updated 3 November 2026
  • ALPINE-EDGE-CVE-2026-40171
    CVE-2026-40171 Alpine Updated 18 November 2026
  • CGA-3jw4-h425-9hpr
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-6vpg-f4c3-7jxp
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-g876-j2q3-2m6g
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-ghp6-7cf6-qp59
    CVE-2026-40171 ChainguardWolfi Updated 5 November 2026
  • CGA-hhrq-f2vh-7r4x
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-hwjx-8wx5-vj9q
    CVE-2026-40171 ChainguardWolfi Updated 5 November 2026
  • CGA-j2f4-5h22-mpfg
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-j6pf-crxx-q6wj
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-jm82-3cp9-wrhp
    CVE-2026-40171 ChainguardWolfi Updated 5 November 2026
  • CGA-m6fj-hqv7-66f3
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-p2x5-7q4m-fq4q
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-p5h8-pg73-6g5h
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-q9p3-97xp-hw3r
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-rch7-5fgj-p775
    CVE-2026-40171 ChainguardWolfi Updated 5 November 2026
  • CGA-wfp2-27v4-7xq3
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • CGA-x3fh-p7qh-7fxq
    CVE-2026-40171 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-40171

    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…

    CVE-2026-40171 Debian Updated 27 October 2026
  • GHSA-rch3-82jr-f9w9

    Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS

    High CVE-2026-40171 PyPInpm Updated 10 September 2026
  • PYSEC-2026-2538

    Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS

    CVE-2026-40171 PyPI Updated 13 July 2026
  • PYSEC-2026-2682

    Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS

    CVE-2026-40171 PyPI Updated 13 July 2026
  • UBUNTU-CVE-2026-40171

    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…

    CVE-2026-40171 Ubuntu Updated 5 November 2026
  • openSUSE-SU-2026:10748-1

    jupyter-jupyterlab-4.5.7-1.1 on GA media

    CVE-2026-40171CVE-2026-42266CVE-2026-42557 openSUSE Updated 12 May 2026
  • openSUSE-SU-2026:10749-1

    jupyter-notebook-7.5.6-1.1 on GA media

    CVE-2026-40171CVE-2026-42557 openSUSE Updated 12 May 2026

References