nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
Summary
nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
Original description
The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-39377 nbconvert Fixed in: 7.16.6-1+deb13u1
- Ubuntu UBUNTU-CVE-2026-39377 nbconvert
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com