CVE-2026-39377 Details
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.
A vulnerability in Jupyter Nbconvert versions 6.5 prior to 7.17.1 allows arbitrary file writes to locations outside the intended output directory. This issue arises when the nbconvert tool processes notebooks with crafted cell attachment filenames. The ExtractAttachmentsPreprocessor directly passes these filenames to the filesystem without proper sanitization, enabling path traversal attacks. As a result, an attacker can manipulate the destination path, filename, file extension, and file content of the written files.
Users can upgrade to Jupyter Nbconvert version 7.17.1, which includes a patch for this vulnerability. Alternatively, the ExtractAttachmentsPreprocessor can be disabled by setting 'c.ExtractAttachmentsPreprocessor.enabled = False'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jupyter/nbconvert/releases/tag/v7.17.1 | [email protected] | Product |
| https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jupyter nbconvert | >= 6.5.0, < 7.17.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 23, 2026 | Initial Analysis | [email protected] |
| Apr 21, 2026 | New CVE Received | [email protected] |