{"id":"CVE-2026-39377","published":"2026-04-21T00:14:59Z","modified":"2026-04-21T19:49:24Z","title":"nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames","vendor":"jupyter","product":"nbconvert","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00271,"percentile":0.19765,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.1","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.95},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"nbconvert","versions":[">= 6.5, < 7.17.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-21T16:01:22.179013Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nbconvert","vulnerableRanges":[">=6.5.0, <7.17.1"],"patched":["7.17.1"],"from":["GHSA-4c99-qj7h-p3vg","PYSEC-2026-2229"],"provenance":"source"}],"summary":{"text":"The nbconvert tool from Jupyter has a path traversal flaw in its ExtractAttachmentsPreprocessor, which passes cell attachment filenames from notebooks directly to the filesystem without sanitisation. An attacker who can get a user to convert a crafted notebook containing malicious attachment filenames can write arbitrary files to locations outside the intended output directory, with control over both the destination path and file extension; exploitation requires user interaction (the victim must process the notebook) and no prior authentication.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:47Z"},"euvd":{"id":"EUVD-2026-24023","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32862","published":"2022-08-18","fixed":"6.5.1","kev":false},{"cve":"CVE-2025-53000","published":"2025-12-17","fixed":"7.17.0","kev":false,"link":{"from":"CVE-2025-53000","to":"CVE-2026-39377","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nbconvert","fromFixed":"7.17.0","toFixed":"7.17.1","daysApart":125}]}},{"cve":"CVE-2026-39377","published":"2026-04-21","fixed":"7.17.1","kev":false},{"cve":"CVE-2026-39378","published":"2026-04-21","fixed":"7.17.1","kev":false},{"cve":"CVE-2026-114140","published":"2026-10-21","fixed":"7.17.2","kev":false}],"package":"PyPI:nbconvert"}}