Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-39377 EUVD-2026-24023GHSA-4c99-qj7h-p3vgPYSEC-2026-2229

nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames

Published Apr 21, 2026 · Updated Apr 21, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
jupyter nbconvert >= 6.5, < 7.17.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nbconvert 7.17.1-1 —
Debian 13 nbconvert 7.16.6-1+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nbconvert No fix yet —
Ubuntu 26.04 LTS nbconvert No fix yet —
Ubuntu 25.10 nbconvert No fix yet —
Ubuntu 24.04 LTS nbconvert No fix yet —
Ubuntu 22.04 LTS nbconvert No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nbconvert No fix yet —
Ubuntu 18.04 LTS nbconvert No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-nbconvert 7.17.1-1.1 openSUSE-SU-2026:10603-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling kubeflow-pipelines-visualization-server 2.16.0-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI nbconvert >= 6.5.0, < 7.17.1 7.17.1 GHSA-4c99-qj7h-p3vg

Advisories 1

References