{"schemaVersion":3,"id":"CVE-2026-40171","aliases":["GHSA-rch3-82jr-f9w9","BIT-jupyter-base-notebook-2026-40171","BIT-jupyter-notebook-2026-40171","BIT-jupyterlab-2026-40171","PYSEC-2026-2538","PYSEC-2026-2682","UBUNTU-CVE-2026-40171","DEBIAN-CVE-2026-40171","CGA-ghp6-7cf6-qp59","CGA-hwjx-8wx5-vj9q","CGA-jm82-3cp9-wrhp","CGA-rch7-5fgj-p775","CGA-3jw4-h425-9hpr","CGA-6vpg-f4c3-7jxp","CGA-g876-j2q3-2m6g","CGA-hhrq-f2vh-7r4x","CGA-j2f4-5h22-mpfg","CGA-j6pf-crxx-q6wj","CGA-m6fj-hqv7-66f3","CGA-p2x5-7q4m-fq4q","CGA-p5h8-pg73-6g5h","CGA-q9p3-97xp-hw3r","CGA-wfp2-27v4-7xq3","CGA-x3fh-p7qh-7fxq"],"status":"published","duplicateOf":null,"title":null,"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.\n\nAn 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.","dates":{"published":"2026-05-06T19:36:32.072Z","modified":"2026-05-08T03:55:41.465Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.4,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.4,"severity":"high","vector":"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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00663,"percentile":0.51031,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.18699999999999992,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00476},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00663,"percentile":0.51031}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00476,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00663,"percentile":0.51031}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"datahub-ingestion","name":"datahub-ingestion","label":"datahub-ingestion","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/datahub-ingestion","purlType":"apk","versions":[{"text":"< 1.5.0.4-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.0.4-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"datahub-ingestion-fips","name":"datahub-ingestion-fips","label":"datahub-ingestion-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/datahub-ingestion-fips","purlType":"apk","versions":[{"text":"< 1.5.0.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.0.1-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"jupyter-base-notebook","name":"jupyter-base-notebook","label":"jupyter-base-notebook","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/jupyter-base-notebook","purlType":"apk","versions":[{"text":"< 7.5.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.5.6-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"tensorflow-cpu-jupyter","name":"tensorflow-cpu-jupyter","label":"tensorflow-cpu-jupyter","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/tensorflow-cpu-jupyter","purlType":"apk","versions":[{"text":"< 2.21.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.21.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"tensorflow-gpu-jupyter","name":"tensorflow-gpu-jupyter","label":"tensorflow-gpu-jupyter","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/tensorflow-gpu-jupyter","purlType":"apk","versions":[{"text":"< 2.21.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.21.0-r2","eol":null,"hubHref":null},{"vendor":"wolfi","product":"jupyter-base-notebook","name":"jupyter-base-notebook","label":"jupyter-base-notebook","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/jupyter-base-notebook","purlType":"apk","versions":[{"text":"< 7.5.6-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.5.6-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"jupyter-notebook","name":"jupyter-notebook","label":"jupyter-notebook","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/jupyter-notebook","purlType":"deb","versions":[{"text":"< 7.4.7-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.4.7-3","eol":null,"hubHref":null},{"vendor":"debian","product":"jupyterlab","name":"jupyterlab","label":"jupyterlab","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/jupyterlab","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 4.4.10+ds1+~3.1.0+~0.16.6+~cs1.4.4-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"jupyter-notebook","name":"jupyter-notebook","label":"jupyter-notebook","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/jupyter-notebook","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"jupyter-notebook","product":"help-extension","name":"help-extension","label":"help-extension","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, ≤ 7.5.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, ≤ 7.5.5","eol":null,"hubHref":"/vendor/jupyter-notebook/help-extension"},{"vendor":"jupyter","product":"notebook","name":"notebook","label":"notebook","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, ≤ 7.5.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, ≤ 7.5.5","eol":null,"hubHref":"/vendor/jupyter/notebook"},{"vendor":"jupyterlab","product":"help-extension","name":"help-extension","label":"help-extension","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.5.6","eol":null,"hubHref":"/vendor/jupyterlab/help-extension"},{"vendor":"jupyterlab","product":"jupyterlab","name":"jupyterlab","label":"jupyterlab","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 4.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 4.5.6","eol":null,"hubHref":"/vendor/jupyterlab/jupyterlab"},{"vendor":"@jupyter-notebook","product":"help-extension","name":"@jupyter-notebook/help-extension","label":"help-extension","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@jupyter-notebook/help-extension","purlType":"npm","versions":[{"text":"≥ 7.0.0, < 7.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.5.6","eol":null,"hubHref":null},{"vendor":"@jupyterlab","product":"help-extension","name":"@jupyterlab/help-extension","label":"help-extension","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@jupyterlab/help-extension","purlType":"npm","versions":[{"text":"< 4.5.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.7","eol":null,"hubHref":null},{"vendor":"PyPI","product":"jupyterlab","name":"jupyterlab","label":"jupyterlab","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/jupyterlab","purlType":"pypi","versions":[{"text":"< 4.5.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.7","eol":null,"hubHref":null},{"vendor":"PyPI","product":"notebook","name":"notebook","label":"notebook","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/notebook","purlType":"pypi","versions":[{"text":"≥ 7.0.0, < 7.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.5.6","eol":null,"hubHref":null}],"affectedCount":17,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9","label":"github.com/jupyter/notebook/security/advisories/GHSA-rch3-82jr-f9w9","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40171","label":"nvd.nist.gov/vuln/detail/CVE-2026-40171","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyter/notebook","label":"github.com/jupyter/notebook","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://jupyterlab.readthedocs.io/en/latest/user/commands.html#commands-in-markdown-output-and-files","label":"jupyterlab.readthedocs.io/en/latest/user/commands.html","hostname":"jupyterlab.readthedocs.io","tags":["WEB"]},{"url":"https://pypi.org/project/jupyterlab","label":"pypi.org/project/jupyterlab","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-rch3-82jr-f9w9","label":"github.com/advisories/GHSA-rch3-82jr-f9w9","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/notebook","label":"pypi.org/project/notebook","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://ubuntu.com/security/CVE-2026-40171","label":"ubuntu.com/security/CVE-2026-40171","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40171","label":"www.cve.org/CVERecord?id=CVE-2026-40171","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-40171","label":"security-tracker.debian.org/tracker/CVE-2026-40171","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40171.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40171.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10748-1","OPENSUSE-SU-2026:10749-1"],"duplicates":[],"related":["CGA-PGRP-HF24-C5RH","OPENSUSE-SU-2026:10748-1","OPENSUSE-SU-2026:10749-1"]},"timeline":[{"kind":"published","date":"2026-05-06T19:36:32.072Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-08T03:55:41.465Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":34,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T19:28:54.626Z","stale":false,"partial":false}}