CVE-2026-39377: nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames

CVE-2026-39377 · Severity: medium · CVSS 6.5 · Published 2026-04-21

The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. Versions 6.5 through 7.17.0 allow arbitrary file writes to locations outside the intended output directory when processing notebooks containing crafted cell attachment filenames. The `ExtractAttachmentsPreprocessor` passes attachment filenames directly to the filesystem without sanitization, enabling path traversal attacks. This vulnerability provides complete control over both the destination path and file extension. Version 7.17.1 contains a patch.

Technologies: Jupyter Nbconvert, nbconvert (PyPI). Vendors: Jupyter, PyPI.

Quick answers

Is CVE-2026-39377 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-39377 being exploited in the wild.
How severe is CVE-2026-39377?
Medium severity, with a CVSS score of 6.5, published 21 April 2026.
Which products and versions are affected?
nbconvert (PyPI) >= 6.5.0, < 7.17.1, ECOSYSTEM:introduced=6.5.0,fixed=7.17.1.
Is there a fix for CVE-2026-39377?
Yes. nbconvert (PyPI): upgrade to 7.17.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-39377?
Check whether you run Jupyter Nbconvert or nbconvert (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • nbconvert (PyPI): upgrade to 7.17.1 or later
    pip install "nbconvert>=7.17.1"

Affected products

  • Jupyter Nbconvert
  • nbconvert (PyPI) >= 6.5.0, < 7.17.1, ECOSYSTEM:introduced=6.5.0,fixed=7.17.1

Identifiers

  • CVE-2026-39377
  • GHSA-4c99-qj7h-p3vg
  • PYSEC-2026-2229

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.