CVE-2026-40171
Last modified
CVE-2026-40171 is a high-severity vulnerability rated 8.4/10 on the CVSS scale. 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. EPSS estimates a 0.48% chance of exploitation in the next 30 days.
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. 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.
Metrics
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| jupyter | notebook | >=7.0.0, <= 7.5.5 |
| jupyterlab | help-extension | <=4.5.6 |
| jupyterlab | jupyterlab | <= 4.5.6 |
| jupyter-notebook | help-extension | >=7.0.0,<= 7.5.5 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-40171?
How severe is CVE-2026-40171?
How do I fix CVE-2026-40171?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40165authentik is an open-source identity provider. Versions 2025…8.7
- CVE-2026-40166authentik is an open-source identity provider. In versions p…7.1
- CVE-2026-40168Postiz is an AI social media scheduling tool. Prior to 2.21.…8.2
- CVE-2026-40169ImageMagick is free and open-source software used for editin…5.5
- CVE-2026-4017Buffer Overflow in the entry handler of the TraceEvent() sys…7.4
- CVE-2026-40170ngtcp2 is a C implementation of the IETF QUIC protocol. In v…7.5
- CVE-2026-40172authentik is an open-source identity provider. In versions p…8.1
- CVE-2026-40173Dgraph is an open source distributed GraphQL database. Versi…9.4
- CVE-2026-40174Masa CMS is a content management system forked from Mura CMS…7.1
- CVE-2026-40175Axios is a promise based HTTP client for the browser and Nod…4.8
- CVE-2026-40176Composer is a dependency manager for PHP. Versions 1.0 throu…7.8
- CVE-2026-40177ajenti.plugin.core defines all necessary core elements to al…7.5
Are you affected by CVE-2026-40171?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
