Description
The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. From 5.4.0 until 7.17.2, ExtractOutputPreprocessor in nbconvert/preprocessors/extractoutput.py joins the attacker-controlled cell output metadata filename to output_files_dir without limiting the result to the intended directory. When a victim converts a malicious notebook with the markdown, LaTeX, reStructuredText, or AsciiDoc exporter, path traversal in the output filename can write attacker-controlled output data to arbitrary locations accessible to the victim. Running the notebook cell again replaces the malicious output metadata, but merely converting the supplied notebook does not. This issue is fixed in version 7.17.2.
Published: 2026-10-21
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Update Immediately
AI Analysis

Impact

nbconvert, part of the Jupyter ecosystem, allows notebooks to be exported to other formats using Jinja templates. Between versions 5.4.0 and 7.17.2, the ExtractOutputPreprocessor joined a cell‑output metadata filename supplied by the user with the output directory path without restricting the result to the intended directory. A crafted notebook can therefore supply a filename that traverses directories and writes arbitrary files on the filesystem where the conversion process runs. This flaw could allow an attacker to overwrite configuration files, drop malicious payloads, or otherwise modify system state, potentially leading to privilege escalation or host compromise.

Affected Systems

The vulnerability exists in Jupyter nbconvert releases from version 5.4.0 through 7.17.2. Any installation of those versions, regardless of operating system, is susceptible. The issue was addressed in release 7.17.2, which includes proper input validation to constrain output paths.

Risk and Exploitability

With a CVSS score of 8.8, this is a high‑severity flaw. No EPSS score is published, but the flaw enables a local user who can supply a malicious notebook to trigger an arbitrary file write. In environments where nbconvert runs with elevated privileges or on shared file systems, the potential impact is significant. The vulnerability is not listed in the CISA KEV catalog, yet its severity warrants immediate attention.

Generated by OpenCVE AI on October 22, 2026 at 03:32 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Jupyter nbconvert to version 7.17.2 or later, which includes the path‑validation fix.
  • If an upgrade is not yet possible, remove or disable automatic conversion of notebooks from untrusted sources and run conversions in a restricted environment with a limited output directory.
  • Configure your deployment to use a dedicated, non‑writable output folder and validate filenames before passing them to nbconvert, ensuring that the output_files_dir is not influenced by user input.

Generated by OpenCVE AI on October 22, 2026 at 03:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pjvx-prjx-h659 nbconvert: Arbitrary file write through path traversal in cell output filenames when exporting to md, latex, rst and asciidoc
History

Fri, 30 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important


Thu, 22 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Jupyter
Jupyter nbconvert
Vendors & Products Jupyter
Jupyter nbconvert

Wed, 21 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Description The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. From 5.4.0 until 7.17.2, ExtractOutputPreprocessor in nbconvert/preprocessors/extractoutput.py joins the attacker-controlled cell output metadata filename to output_files_dir without limiting the result to the intended directory. When a victim converts a malicious notebook with the markdown, LaTeX, reStructuredText, or AsciiDoc exporter, path traversal in the output filename can write attacker-controlled output data to arbitrary locations accessible to the victim. Running the notebook cell again replaces the malicious output metadata, but merely converting the supplied notebook does not. This issue is fixed in version 7.17.2.
Title nbconvert: File write via path traversal in cell output filenames
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

Jupyter Nbconvert
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-30T15:01:54.170Z

Reserved: 2026-10-20T21:53:58.473Z

Link: CVE-2026-114140

cve-icon Vulnrichment

Updated: 2026-10-30T15:01:25.000Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-21T21:17:56.520

Modified: 2026-10-30T15:16:45.340

Link: CVE-2026-114140

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-21T20:19:50Z

Links: CVE-2026-114140 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T10:30:04Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')