nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames (jupyter nbconvert)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % Β· percentile 19 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-22 β Improper Limitation of a Pathname to a Restricted Directory
- CWE-73 β External Control of File Name or Path
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-4c99-qj7h-p3vg β nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
- PYSEC-2026-2229 β 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
European references
- ENISA EUVD Β· EUVD-2026-24023
- GCVE Β· GCVE-0-2026-39377
Affected configurations (NVD CPE)
cpe:2.3:a:jupyter:nbconvert:*:*:*:*:*:python:*:*β₯ 6.5.0 < 7.17.1
Affected products
| Product | Versions |
|---|---|
| jupyter Β· nbconvert | affected >= 6.5, < 7.17.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |