原始 OSV JSON{
"id": "GHSA-rch3-82jr-f9w9",
"aliases": [
"CVE-2026-40171"
],
"details": "### Impact\n\nA stored Cross-Site Scripting (XSS) vulnerability in Jupyter Notebook allows attackers to steal authentication tokens from users who open malicious notebook files and interact with elements that the attacker can make look indistinguishable from legitimate controls (single click interaction).\n\nThe vulnerability enables complete account takeover through the Jupyter REST API, allowing the attacker to:\n1. Read all files\n2. Modify/create files\n3. Access running kernels and execute arbitrary code\n4. Create terminals for shell access\n\n### Patches\n\nJupyter Notebook 7.5.6 and JupyterLab 4.5.7 include patches for this vulnerability.\n\n### Workarounds\n\nThe help extension can be disabled via CLI:\n\n```\njupyter labextension disable @jupyter-notebook/help-extension\njupyter labextension disable @jupyterlab/help-extension\n```\n\n### Hardening\n\nThe patched versions include a toggle to disable the command linker functionality altogether, for example via `overrides.json`:\n\n```json\n{\n \"@jupyterlab/apputils-extension:sanitizer\": {\n \"allowCommandLinker\": false\n }\n}\n```\n\n### Resources\n\n- https://jupyterlab.readthedocs.io/en/latest/user/commands.html#commands-in-markdown-output-and-files\n\n### Acknowledgments\n\nReported by Daniel Teixeira - NVIDIA AI Red Team",
"summary": "Jupyter Notebook Vulnerable to Authentication Token Theft via CommandLinker XSS",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.5.6"
}
]
}
],
"package": {
"name": "@jupyter-notebook/help-extension",
"ecosystem": "npm"
},
"database_specific": {
"last_known_affected_version_range": "<= 7.5.5"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.5.6"
}
]
}
],
"package": {
"name": "notebook",
"ecosystem": "PyPI"
},
"database_specific": {
"last_known_affected_version_range": "<= 7.5.5"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.5.7"
}
]
}
],
"package": {
"name": "jupyterlab",
"ecosystem": "PyPI"
},
"database_specific": {
"last_known_affected_version_range": "<= 4.5.6"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.5.7"
}
]
}
],
"package": {
"name": "@jupyterlab/help-extension",
"ecosystem": "npm"
},
"database_specific": {
"last_known_affected_version_range": "<= 4.5.6"
}
}
],
"modified": "2026-05-08T19:26:04Z",
"severity": [
{
"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"
}
],
"published": "2026-04-30T17:25:47Z",
"references": [
{
"url": "https://github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40171",
"type": "ADVISORY"
},
{
"url": "https://github.com/jupyter/notebook",
"type": "PACKAGE"
},
{
"url": "https://jupyterlab.readthedocs.io/en/latest/user/commands.html#commands-in-markdown-output-and-files",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-601",
"CWE-79"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2026-05-06T20:16:31Z",
"github_reviewed_at": "2026-04-30T17:25:47Z"
}
}