Skip to main content
← All vulnerabilities
CVE-2026-39377PYSEC-2026-2229GHSA-4C99-QJ7H-P3VG

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.17.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jupyter nbconvert

    From 6.5 · fixed in 7.17.1

  • nbconvertPyPI

    From 6.5.0 · fixed in 7.17.1

References 2

GitHub · jupyter/nbconvert