Skip to content
Heist/ feed
Back to feed
HighFix available

jupyter-notebook, jupyterlab — security advisory

Type: advisorySources: OSVAdvisory ID: 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 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.

Products
jupyter-notebook, jupyterlab
Affected versions
4.0.11+ds1+~cs11.25.27-7, 4.0.11+ds1+~cs11.25.27-8, 4.0.11+ds1+~cs11.25.27-9, 4.0.11+ds2+~cs11.25.27-1, 4.0.11+ds2+~cs11.25.27-3, 4.0.11+ds3+~cs11.25.27-1, 4.0.11+ds4+~cs11.25.27-1, 4.0.11+ds4+~cs11.25.27-2, 4.0.11+ds4+~cs11.25.27-3, 4.0.11+ds4+~cs11.25.27-4, 4.0.11+ds5+~cs11.25.27-1, 4.0.13+ds1+~2.0.1+~cs1.4.4-1, 4.1.3+ds1+~2.0.1+~0.15.3+~cs1.4.4-1, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-1, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-2, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-3, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-4, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-5, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-6, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-7, 4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-8, 4.4.1+ds1+~3.0.5+~0.16.6+~cs1.4.4-1, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-1, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-2, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-4, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-5, 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-6, 4.4.8+ds1+~3.1.0+~0.16.6+~cs1.4.4-1, 6.4.13-5, 7.0.0-1, 7.0.0-2, 7.4.7-1, 7.4.7-2
Fixed versions
4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3, 7.4.7-3
CVEs
CVE-2026-40171
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 17:36 UTC · Revision 2

Source evidence

DEBIAN-CVE-2026-40171

core-osv · Original source

Published 6 May 2026, 20:16 UTC

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.

osv:DEBIAN-CVE-2026-40171

jupyter-notebook

Fixed versions: 7.4.7-3

jupyterlab

Fixed versions: Not specified

jupyterlab

Fixed versions: 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3

Complete source record
{
  "id": "f1821bf74876421923b1a9e1fb1e58df81e8646c9147ef33e065410422c442c9",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-40171",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-40171",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-40171",
    "products": [
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "7.4.7-3",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.4.13-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.0.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.0.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.4.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.4.7-2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterlab",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.11+ds1+~cs11.25.27-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds1+~cs11.25.27-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds1+~cs11.25.27-9",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds2+~cs11.25.27-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds2+~cs11.25.27-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds3+~cs11.25.27-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.11+ds5+~cs11.25.27-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.0.13+ds1+~2.0.1+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.3+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.1+ds1+~3.0.5+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "4.4.8+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyterlab",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "4.0.11+ds1+~cs11.25.27-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds1+~cs11.25.27-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds1+~cs11.25.27-9",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds2+~cs11.25.27-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds2+~cs11.25.27-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds3+~cs11.25.27-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds4+~cs11.25.27-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.11+ds5+~cs11.25.27-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.0.13+ds1+~2.0.1+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.3+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-5",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.1+ds1+~3.0.5+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "4.4.8+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-40171",
      "aliases": [
        "DEBIAN-CVE-2026-40171"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "7.4.7-3"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/debian/jupyter-notebook?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "6.4.13-5",
            "7.0.0-1",
            "7.0.0-2",
            "7.4.7-1",
            "7.4.7-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterlab",
            "purl": "pkg:deb/debian/jupyterlab?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "4.0.11+ds1+~cs11.25.27-7",
            "4.0.11+ds1+~cs11.25.27-8",
            "4.0.11+ds1+~cs11.25.27-9",
            "4.0.11+ds2+~cs11.25.27-1",
            "4.0.11+ds2+~cs11.25.27-3",
            "4.0.11+ds3+~cs11.25.27-1",
            "4.0.11+ds4+~cs11.25.27-1",
            "4.0.11+ds4+~cs11.25.27-2",
            "4.0.11+ds4+~cs11.25.27-3",
            "4.0.11+ds4+~cs11.25.27-4",
            "4.0.11+ds5+~cs11.25.27-1",
            "4.0.13+ds1+~2.0.1+~cs1.4.4-1",
            "4.1.3+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-2",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-3",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-4",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-5",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-6",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-7",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-8",
            "4.4.1+ds1+~3.0.5+~0.16.6+~cs1.4.4-1",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-2",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-4",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-5",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-6",
            "4.4.8+ds1+~3.1.0+~0.16.6+~cs1.4.4-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyterlab",
            "purl": "pkg:deb/debian/jupyterlab?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "4.0.11+ds1+~cs11.25.27-7",
            "4.0.11+ds1+~cs11.25.27-8",
            "4.0.11+ds1+~cs11.25.27-9",
            "4.0.11+ds2+~cs11.25.27-1",
            "4.0.11+ds2+~cs11.25.27-3",
            "4.0.11+ds3+~cs11.25.27-1",
            "4.0.11+ds4+~cs11.25.27-1",
            "4.0.11+ds4+~cs11.25.27-2",
            "4.0.11+ds4+~cs11.25.27-3",
            "4.0.11+ds4+~cs11.25.27-4",
            "4.0.11+ds5+~cs11.25.27-1",
            "4.0.13+ds1+~2.0.1+~cs1.4.4-1",
            "4.1.3+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-1",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-2",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-3",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-4",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-5",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-6",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-7",
            "4.1.8+ds1+~2.0.1+~0.15.3+~cs1.4.4-8",
            "4.4.1+ds1+~3.0.5+~0.16.6+~cs1.4.4-1",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-1",
            "4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-2",
            "4.4.8+ds1+~3.1.0+~0.16.6+~cs1.4.4-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-27T09:47:30.667881057Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40171"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-40171"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40171",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 460874,
  "published_at": "2026-05-06T20:16:31.857+00:00"
}