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-39378

CVE-2026-39378: Jupyter Nbconvert Path Traversal Flaw

CVE-2026-39378 is a path traversal vulnerability in Jupyter Nbconvert that allows arbitrary file reads through malicious image references. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-39378 Overview

CVE-2026-39378 is a path traversal vulnerability affecting Jupyter nbconvert, a widely-used tool that converts Jupyter notebooks to various output formats via Jinja templates. When the HTMLExporter.embed_images=True configuration option is enabled, the nbconvert markdown renderer fails to properly sanitize image reference paths, allowing attackers to read arbitrary files from the conversion host system through malicious path traversal sequences in notebook image references.

A threat actor can craft a malicious Jupyter notebook containing specially crafted image references that traverse the file system to access sensitive files. When converted to HTML with embedded images enabled, these files are exfiltrated by being embedded as base64 data URIs directly in the output HTML. This vulnerability poses a significant risk in environments where untrusted notebooks are processed, particularly automated conversion pipelines and shared Jupyter infrastructure.

Critical Impact

Attackers can exfiltrate sensitive files including configuration files, credentials, private keys, and other confidential data from the conversion host by exploiting improper path validation in image embedding functionality.

Affected Products

  • Jupyter nbconvert versions 6.5 through 7.17.0

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-39378 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-39378

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists in nbconvert's markdown rendering component when processing image references during HTML export with embedded images enabled. The core issue stems from insufficient validation of file paths referenced in notebook markdown cells when the HTMLExporter.embed_images option is set to True.

When this configuration is active, nbconvert reads local image files and converts them to base64 data URIs for inclusion in the output HTML. However, the path resolution logic fails to properly restrict file access to the notebook's directory or a designated safe location. An attacker can inject path traversal sequences (such as ../) in image source references within a malicious notebook, allowing them to reference and read arbitrary files accessible to the process running nbconvert.

The attack requires user interaction in the sense that a victim must convert the malicious notebook, but this can occur automatically in CI/CD pipelines, documentation generation systems, or shared Jupyter environments where notebooks are routinely converted to HTML for distribution or publishing.

Root Cause

The root cause of CVE-2026-39378 is improper input validation in the image path handling logic within nbconvert's HTML exporter. When embed_images is enabled, the markdown renderer processes image references without adequately sanitizing or validating the paths against directory traversal attacks. The component fails to canonicalize paths and verify that resolved file locations remain within expected boundaries before reading file contents for base64 encoding.

Attack Vector

The attack is network-accessible and requires minimal complexity to execute. An attacker creates a malicious Jupyter notebook containing markdown cells with image references that include path traversal sequences pointing to sensitive files on the target system. When the notebook is converted to HTML with embed_images=True, the nbconvert tool reads the referenced files and embeds their contents as base64-encoded data URIs in the output.

Common attack scenarios include:

  • Exfiltrating /etc/passwd, /etc/shadow, or SSH private keys on Linux systems
  • Reading application configuration files containing database credentials or API keys
  • Accessing environment files and secrets in containerized deployments
  • Extracting source code or proprietary data from the conversion server

The attacker can then retrieve the output HTML through normal channels (documentation sites, CI artifacts, shared drives) to extract the exfiltrated data by decoding the embedded base64 content.

Detection Methods for CVE-2026-39378

Indicators of Compromise

  • Presence of notebooks containing suspicious image references with ../ path traversal sequences
  • HTML output files containing unexpectedly large base64 data URIs that decode to text content (configuration files, keys)
  • Unusual file access patterns from nbconvert processes accessing files outside notebook directories
  • Notebooks with image references pointing to system paths like /etc/, /home/, or Windows system directories

Detection Strategies

  • Implement file integrity monitoring on sensitive configuration files and credential stores
  • Review nbconvert configuration to identify instances where HTMLExporter.embed_images=True is enabled
  • Scan existing notebooks for suspicious path patterns in image references using grep or similar tools
  • Monitor process file access using auditd or similar tools to detect nbconvert accessing sensitive system files
  • Implement content security policies for generated HTML to detect anomalous embedded data

Monitoring Recommendations

  • Enable logging for nbconvert operations in production and CI/CD environments
  • Set up alerts for file read operations from nbconvert processes accessing paths outside expected directories
  • Periodically audit notebooks processed in shared environments for malicious content
  • Monitor output HTML file sizes for anomalies that could indicate embedded sensitive data

How to Mitigate CVE-2026-39378

Immediate Actions Required

  • Upgrade Jupyter nbconvert to version 7.17.1 or later immediately
  • Review current nbconvert configurations and disable HTMLExporter.embed_images if not strictly required
  • Audit existing notebooks processed in your environment for potential exploitation attempts
  • Implement sandboxing or containerization for notebook conversion processes to limit file system access

Patch Information

The vulnerability is fixed in nbconvert version 7.17.1. The patch addresses the path traversal issue by implementing proper path validation and sanitization in the image embedding functionality. For detailed information about the fix, refer to the GitHub Release v7.17.1 and the GitHub Security Advisory GHSA-7jqv-fw35-gmx9.

To upgrade nbconvert using pip:

bash
pip install --upgrade nbconvert>=7.17.1

Workarounds

  • Disable the HTMLExporter.embed_images configuration option; it is not enabled by default
  • Run nbconvert processes in isolated containers with minimal file system access
  • Implement preprocessing steps to scan and sanitize notebooks before conversion
  • Use read-only file system mounts for sensitive directories when running nbconvert
bash
# Configuration example - Ensure embed_images is disabled in your nbconvert config
# ~/.jupyter/nbconvert_config.py or jupyter_nbconvert_config.py

c.HTMLExporter.embed_images = False

# Or when running from command line, explicitly disable:
jupyter nbconvert --to html --HTMLExporter.embed_images=False notebook.ipynb

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechJupyter Nbconvert

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Release v7.17.1
  • Vendor Resources
  • GitHub Security Advisory GHSA-7jqv-fw35-gmx9
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
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