CVE-2026-39377
MEDIUM 6.5CVSS 3.1nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames
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.
- Published
- 21 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-4c99-qj7h-p3vgPYSEC-2026-2229
- Sources
- NVDJSONOSV GHSA-4c99-qj7h-p3vgJSONOSV PYSEC-2026-2229JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | 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 |
| OSV | GitHub | 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 |
| OSV | PyPA | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jupyter | nbconvertcpe:2.3:a:jupyter:nbconvert:*:*:*:*:*:python:*:* |
>= 6.5.0, < 7.17.1 | 7.17.1 |
| OSV | PyPI | nbconvert | >= 6.5.0, < 7.17.1 | 7.17.1 |
References
- https://github.com/jupyter/nbconvert/releases/tag/v7.17.1 · Product, WEB
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-39377 · ADVISORY
- https://github.com/jupyter/nbconvert · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Apr 2026)