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
jupyter: nbconvert
References2
- github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h… MitigationVendor Advisory
- github.com/jupyter/nbconvert/releases/tag/v7.17.1 Product
Metrics
- CVSS 3.1
-
6.5
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - EPSS — exploit probability
- 0% percentile: 19 · as of 13 November 2026
- CWE
- CWE-22CWE-73
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.