Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M
CVE-2026-39377nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
Medium 6.5
In plain English
A medium-severity path traversal in nbconvert from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | nbconvert | 7.16.6-1+deb13u1 | DEBIAN-CVE-2026-39377 |
| Debian:14 | nbconvert | 7.17.1-1 | DEBIAN-CVE-2026-39377 |
| PyPI | nbconvert | 7.17.1 | GHSA-4c99-qj7h-p3vg |
| PyPI | nbconvert | 7.17.1 | PYSEC-2026-2229 |
| Ubuntu:22.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39377 |
| Ubuntu:24.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39377 |
| Ubuntu:25.10 | nbconvert | no fix listed | UBUNTU-CVE-2026-39377 |
| Ubuntu:26.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39377 |
| Ubuntu:26.10 | nbconvert | no fix listed | UBUNTU-CVE-2026-39377 |
Affected products (as reported)
Weakness: CWE-22, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
References
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg x_refsource_CONFIRM
- https://github.com/jupyter/nbconvert/releases/tag/v7.17.1 x_refsource_MISC