VDB
KO
MEDIUM 6.5

PYSEC-2026-2229

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / nbconvert
Introduced in: 6.5.0 Fixed in: 7.17.1
Fix pip install --upgrade 'nbconvert>=7.17.1'

References