CVE-2026-39377CWE-22CWE-73

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

Medium · published April 21, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
33.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00402 · 33.3th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-73 · External Control of File Name or Path
Published
2026-04-21T00:14Z
EPSS history
Timeline
  • 21 APR 00:14Z
    nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
    cvelistv5