Skip to content
Heist/ feed
Back to feed
High

jupyter-notebook — security advisory

Type: advisorySources: OSVAdvisory ID: 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 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
Affected versions
4.2.3-4, 5.1.0-2, 5.2.1-2, 5.2.2-1, 5.2.2-1ubuntu0.1, 5.7.8-1, 6.0.0-1, 6.0.0-2, 6.0.2-1, 6.0.3-1, 6.0.3-2, 6.0.3-2ubuntu0.1, 6.2.0-1, 6.4.12-2.2, 6.4.12-2.2ubuntu1, 6.4.12-2.2ubuntu1+esm1, 6.4.13-5, 6.4.13-5ubuntu0.1, 6.4.5-2, 6.4.5-3, 6.4.5-4, 6.4.8-1, 6.4.8-1ubuntu0.1, 6.4.8-1ubuntu0.1+esm1
Fixed versions
Not specified
CVEs
CVE-2026-40171
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:02 UTC · Revision 1

Source evidence

UBUNTU-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:UBUNTU-CVE-2026-40171

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

jupyter-notebook

Fixed versions: Not specified

Complete source record
{
  "id": "f6225df4b4df46e356a381caf54ec5a88062e6c5d2df1a8dee4e0ad1ba46105b",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-40171",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-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:UBUNTU-CVE-2026-40171",
    "products": [
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.2.3-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.1.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.2.2-1ubuntu0.1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.7.8-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.3-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.0.3-2ubuntu0.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.2.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.5-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.5-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.5-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.8-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.8-1ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.8-1ubuntu0.1+esm1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.12-2.2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.4.12-2.2ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "6.4.12-2.2ubuntu1+esm1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.13-5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.4.13-5ubuntu0.1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.13-5ubuntu0.1",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "jupyter-notebook",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.13-5ubuntu0.1",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-40171",
      "aliases": [
        "UBUNTU-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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "4.2.3-4",
            "5.1.0-2",
            "5.2.1-2",
            "5.2.2-1",
            "5.2.2-1ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "5.2.2-1ubuntu0.1"
              },
              {
                "binary_name": "python-notebook",
                "binary_version": "5.2.2-1ubuntu0.1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "5.2.2-1ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "5.7.8-1",
            "6.0.0-1",
            "6.0.0-2",
            "6.0.2-1",
            "6.0.3-1",
            "6.0.3-2",
            "6.0.3-2ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.0.3-2ubuntu0.1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.0.3-2ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "6.2.0-1",
            "6.4.5-2",
            "6.4.5-3",
            "6.4.5-4",
            "6.4.8-1",
            "6.4.8-1ubuntu0.1",
            "6.4.8-1ubuntu0.1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.4.8-1ubuntu0.1+esm1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.4.8-1ubuntu0.1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "6.4.12-2.2",
            "6.4.12-2.2ubuntu1",
            "6.4.12-2.2ubuntu1+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.4.12-2.2ubuntu1+esm1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.4.12-2.2ubuntu1+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.4.13-5",
            "6.4.13-5ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.4.13-5ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "jupyter-notebook",
            "purl": "pkg:deb/ubuntu/jupyter-notebook?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.4.13-5ubuntu0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40171.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "jupyter-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              },
              {
                "binary_name": "python3-notebook",
                "binary_version": "6.4.13-5ubuntu0.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:03.921768848Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40171"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-40171",
        "https://www.cve.org/CVERecord?id=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": 360236,
  "published_at": "2026-05-06T20:16:00+00:00"
}