The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40171

CVE-2026-40171: Jupyter Notebook XSS Vulnerability

CVE-2026-40171 is a stored cross-site scripting flaw in Jupyter Notebook and JupyterLab that enables attackers to steal authentication tokens and take over sessions. This article covers technical details, affected versions, impact, and mitigation steps.

Published: May 7, 2026

CVE-2026-40171 Overview

CVE-2026-40171 is a stored cross-site scripting (XSS) vulnerability [CWE-79] affecting Jupyter Notebook and JupyterLab. The flaw resides in the help command linker of the @jupyter-notebook/help-extension and @jupyterlab/help-extension packages. Attackers can chain the issue with attacker-controlled notebook content to steal authentication tokens with a single click.

The vulnerability impacts Jupyter Notebook versions 7.0.0 through 7.5.5 and JupyterLab versions 4.5.6 and earlier. Successful exploitation grants full session takeover through the REST API, including arbitrary code execution via kernels and shell access through terminals.

Critical Impact

A single click on a crafted notebook element exposes authentication tokens, allowing attackers to read or modify files, execute arbitrary code in kernels, and open terminal shells.

Affected Products

  • Jupyter Notebook 7.0.0 through 7.5.5
  • JupyterLab 4.5.6 and earlier
  • @jupyter-notebook/help-extension before 7.5.6 and @jupyterlab/help-extension before 4.5.7

Discovery Timeline

  • 2026-05-06 - CVE-2026-40171 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-40171

Vulnerability Analysis

The issue is a stored XSS flaw in the help command linker used by the Jupyter help extensions. The linker renders attacker-controlled content from notebook files without adequate sanitization. When a user opens a malicious .ipynb file, the rendered elements appear visually indistinguishable from legitimate Jupyter UI controls.

A single user click triggers JavaScript execution within the authenticated Jupyter session context. The attacker-supplied script then exfiltrates the user's authentication token. With that token, the adversary interacts with the Jupyter REST API as the victim.

Post-exploitation capabilities include reading and writing arbitrary files, attaching to existing kernels to run code, spawning new kernels, and creating terminal sessions for shell access on the host running the Jupyter server.

Root Cause

The commandlinker sanitizer logic permits attacker-controlled command parameters that can be rendered as interactive elements. The configuration option allowCommandLinker defaults to a permissive state, enabling notebook content to register click handlers that invoke privileged commands within the Jupyter front end.

Attack Vector

Exploitation requires the attacker to deliver a malicious notebook file to the victim. Distribution channels include shared repositories, email attachments, collaborative platforms, or compromised data science workflows. The user must open the notebook in a vulnerable Jupyter Notebook or JupyterLab instance and click the crafted element. Authentication is required on the victim side, and user interaction is mandatory, but no privileges are needed by the attacker on the target system.

The vulnerability mechanism is documented in the GitHub Security Advisory GHSA-rch3-82jr-f9w9. No public exploit code is currently available.

Detection Methods for CVE-2026-40171

Indicators of Compromise

  • Notebook files containing markdown or output cells with command: URI schemes referencing help extension commands
  • Unexpected outbound HTTPS requests from browsers immediately following the opening of an .ipynb file, particularly carrying token query parameters or Authorization headers
  • Jupyter server access logs showing REST API calls from unfamiliar IP addresses using a valid token shortly after notebook interaction
  • New kernel or terminal sessions created without corresponding interactive user activity in the front end

Detection Strategies

  • Inspect notebook JSON for embedded HTML or markdown content invoking command linker URIs that reference help extension actions
  • Monitor Jupyter server logs (jupyter_server.log) for /api/kernels, /api/terminals, and /api/contents calls that deviate from baseline user behavior
  • Audit installed package versions of @jupyter-notebook/help-extension and @jupyterlab/help-extension across developer endpoints

Monitoring Recommendations

  • Forward Jupyter server access and authentication logs to a centralized logging platform for correlation with endpoint and network telemetry
  • Alert on token usage from IP addresses that differ from the originating user session
  • Track creation of terminal sessions on Jupyter hosts and correlate with shell process activity

How to Mitigate CVE-2026-40171

Immediate Actions Required

  • Upgrade Jupyter Notebook to version 7.5.6 or later
  • Upgrade JupyterLab to version 4.5.7 or later
  • Update @jupyter-notebook/help-extension to 7.5.6 and @jupyterlab/help-extension to 4.5.7
  • Rotate Jupyter authentication tokens after patching to invalidate any tokens that may have been exposed

Patch Information

The maintainers released fixes in Notebook 7.5.6, JupyterLab 4.5.7, @jupyter-notebook/help-extension7.5.6, and @jupyterlab/help-extension4.5.7. Patch details are available in the GitHub Security Advisory GHSA-rch3-82jr-f9w9.

Workarounds

  • Disable the affected help extensions using jupyter labextension disable @jupyterlab/help-extension and the equivalent command for the notebook help extension
  • Set allowCommandLinker to false in the sanitizer configuration to block command linker rendering
  • Restrict notebook file sharing to trusted sources until the upgrade is deployed
bash
# Configuration example
# Disable the affected help extensions
jupyter labextension disable @jupyterlab/help-extension
jupyter labextension disable @jupyter-notebook/help-extension

# Alternatively, set allowCommandLinker to false in the sanitizer config
# In jupyter_server_config.py:
c.LabApp.tornado_settings = {
    "sanitizer": {
        "allowCommandLinker": False
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJupyter

  • SeverityHIGH

  • CVSS Score8.4

  • Known ExploitedNo
  • CVSS 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40110: Jupyter Server Auth Bypass Vulnerability

  • CVE-2026-40934: Jupyter Server Auth Bypass Vulnerability

  • CVE-2026-39377: Jupyter Nbconvert Path Traversal Flaw

  • CVE-2025-30167: Jupyter Core Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English