CVE-2026-39378: nbconvert: path traversal exfiltrates files via HTML export

GHSA-7jqv-fw35-gmx9 MEDIUM
Published April 21, 2026
CISO Take

Jupyter's nbconvert contains a path traversal vulnerability that allows a malicious notebook to read arbitrary files from the conversion host and silently embed them as base64-encoded data URIs in the exported HTML — effectively turning your report generation pipeline into an exfiltration channel. With 2,931 downstream dependents and EPSS at the 89th percentile, exposure across ML engineering teams is substantial, particularly in CI/CD automation and collaborative platforms that process external notebooks. The exploit is non-default (requires HTMLExporter.embed_images=True to be explicitly enabled) and technically trivial once that condition is met, making it an attractive low-effort pivot for supply chain attackers who can influence which notebooks your pipelines consume. Patch to nbconvert 7.17.1 immediately and audit all pipeline configurations for explicit embed_images=True settings.

Sources: NVD GitHub Advisory EPSS OpenSSF ATLAS

What is the risk?

CVSS 6.5 (Medium) understates real-world risk in ML pipeline contexts. The confidentiality sub-score is HIGH (C:H) — sensitive files including SSH keys, API tokens, and model configurations are fully readable by any notebook processed by an affected pipeline. The non-default flag requirement narrows exposure but any team that has enabled embed_images=True is fully compromised by whatever notebooks they ingest. OpenSSF Scorecard of 4.9/10 and 9 prior CVEs in the same package signal a persistently weak security posture. SSVC is TRACK with no active exploitation confirmed, but the trivial exploitation difficulty warrants immediate patching rather than deferral.

How does the attack unfold?

Malicious Artifact Delivery
Adversary introduces a crafted Jupyter notebook containing path traversal sequences in image cell references into a pipeline that processes external notebooks.
AML.T0011.000
Exploitation
nbconvert with embed_images=True follows the traversal paths and reads arbitrary files from the conversion host filesystem, including credentials and configuration files.
AML.T0037
Exfiltration
File contents are base64-encoded and silently embedded as data URIs in the output HTML, which is delivered through normal report distribution channels.
AML.T0025
Impact
Adversary decodes embedded files from the HTML report to obtain credentials, API keys, or proprietary ML pipeline configurations from the conversion host.
AML.T0048.000

What systems are affected?

Package Ecosystem Vulnerable Range Patched
Jupyter Notebook pip >= 6.5.0, < 7.17.1 7.17.1
13.2K OpenSSF 5.6 3.0K dependents Pushed 7d ago 60% patched ~454d to patch Full package profile →

Do you use Jupyter Notebook? You're affected.

How severe is it?

CVSS 3.1
6.5 / 10
EPSS
0.0%
chance of exploitation in 30 days
Higher than 12% of all CVEs
Exploitation Status
No known exploitation
Sophistication
Trivial

What is the attack surface?

AV AC PR UI S C I A
AV Network
AC Low
PR None
UI Required
S Unchanged
C High
I None
A None

What should I do?

5 steps
  1. PATCH

    Upgrade nbconvert to 7.17.1 across all environments (dev, staging, production).

  2. AUDIT

    Search all nbconvert configurations, CI/CD scripts, and Makefile targets for 'embed_images=True' or '--embed-images' flags — this setting is False by default but may have been enabled for self-contained report generation.

  3. SANDBOX

    Run notebook conversion in isolated containers with read-only filesystem mounts limited to notebook working directories.

  4. SUPPLY CHAIN

    Validate the provenance of notebooks processed by automated pipelines; treat external notebooks as untrusted input.

  5. DETECT

    Monitor HTML export jobs for unexpectedly large output files (embedded file contents inflate HTML size significantly).

What does CISA's SSVC say?

Decision Track
Exploitation none
Automatable No
Technical Impact partial

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Art. 15 - Accuracy, Robustness and Cybersecurity
ISO 42001
A.9.3 - AI System Security Controls
NIST AI RMF
MANAGE 2.4 - Residual risks are managed
OWASP LLM Top 10
LLM03 - Supply Chain Vulnerabilities

Frequently Asked Questions

What is CVE-2026-39378?

Jupyter's nbconvert contains a path traversal vulnerability that allows a malicious notebook to read arbitrary files from the conversion host and silently embed them as base64-encoded data URIs in the exported HTML — effectively turning your report generation pipeline into an exfiltration channel. With 2,931 downstream dependents and EPSS at the 89th percentile, exposure across ML engineering teams is substantial, particularly in CI/CD automation and collaborative platforms that process external notebooks. The exploit is non-default (requires HTMLExporter.embed_images=True to be explicitly enabled) and technically trivial once that condition is met, making it an attractive low-effort pivot for supply chain attackers who can influence which notebooks your pipelines consume. Patch to nbconvert 7.17.1 immediately and audit all pipeline configurations for explicit embed_images=True settings.

Is CVE-2026-39378 actively exploited?

No confirmed active exploitation of CVE-2026-39378 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-39378?

1. PATCH: Upgrade nbconvert to 7.17.1 across all environments (dev, staging, production). 2. AUDIT: Search all nbconvert configurations, CI/CD scripts, and Makefile targets for 'embed_images=True' or '--embed-images' flags — this setting is False by default but may have been enabled for self-contained report generation. 3. SANDBOX: Run notebook conversion in isolated containers with read-only filesystem mounts limited to notebook working directories. 4. SUPPLY CHAIN: Validate the provenance of notebooks processed by automated pipelines; treat external notebooks as untrusted input. 5. DETECT: Monitor HTML export jobs for unexpectedly large output files (embedded file contents inflate HTML size significantly).

What systems are affected by CVE-2026-39378?

This vulnerability affects the following AI/ML architecture patterns: Jupyter notebook pipelines, ML training pipelines, CI/CD automation, Automated report generation, Data science workflows.

What is the CVSS score for CVE-2026-39378?

CVE-2026-39378 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.04%.

What is the AI security impact?

Affected AI Architectures

Jupyter notebook pipelinesML training pipelinesCI/CD automationAutomated report generationData science workflows

MITRE ATLAS Techniques

AML.T0010.001 AI Software
AML.T0011.000 Unsafe AI Artifacts
AML.T0025 Exfiltration via Cyber Means
AML.T0037 Data from Local System

Compliance Controls Affected

EU AI Act: Art. 15
ISO 42001: A.9.3
NIST AI RMF: MANAGE 2.4
OWASP LLM Top 10: LLM03

What are the technical details?

Original Advisory

## Summary When `HTMLExporter.embed_images=True`, nbconvert's markdown renderer allows arbitrary file read via path traversal in image references. A malicious notebook can exfiltrate sensitive files from the conversion host by embedding them as base64 data URIs in the output HTML. ## Patches Upgrade to nbconvert 7.17.1 ## Workarounds Do not enable `HTMLExporter.embed_images` (it is not enabled by default).

Exploitation Scenario

A red teamer submits a crafted Jupyter notebook to an internal ML platform that auto-converts notebooks to HTML for stakeholder reporting, with embed_images=True enabled for self-contained reports. The notebook includes image display cells referencing paths like '../../../../home/ubuntu/.aws/credentials' and '../../../../etc/passwd' via relative traversal. When the CI/CD pipeline runs nbconvert, these files are read from the host and embedded as base64 data URIs in the output HTML report. The attacker retrieves the published report, decodes the data URIs, and obtains AWS credentials and system user information — all without any anomalous network activity or authentication events.

Weaknesses (CWE)

CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

  • [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
  • [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Timeline

Published
April 21, 2026
Last Modified
April 21, 2026
First Seen
April 21, 2026

Related Vulnerabilities