CVE-2026-39377: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jupyter nbconvert
A path traversal vulnerability exists in jupyter nbconvert versions 6. 5 through 7. 17. 0. The vulnerability allows crafted notebook cell attachment filenames to cause arbitrary file writes outside the intended output directory. This occurs because the ExtractAttachmentsPreprocessor does not sanitize attachment filenames before writing to the filesystem. The issue is patched in version 7. 17. 1.
AI Analysis
Technical Summary
The jupyter nbconvert tool, used to convert Jupyter notebooks to other formats via Jinja templates, contains a path traversal vulnerability (CWE-22) in versions 6.5 up to 7.17.0. The vulnerability arises from the ExtractAttachmentsPreprocessor passing attachment filenames directly to the filesystem without sanitization. This enables an attacker to control the destination path and file extension, allowing arbitrary file writes outside the intended directory. The vulnerability has a CVSS 3.1 score of 6.5, indicating a medium severity. Version 7.17.1 includes a patch that addresses this issue.
Potential Impact
Exploitation of this vulnerability allows an attacker to write files to arbitrary locations on the filesystem where nbconvert is run, potentially overwriting critical files or placing malicious files. This can lead to integrity violations but does not directly impact confidentiality or availability according to the CVSS vector. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade jupyter nbconvert to version 7.17.1 or later, which contains the official patch for this vulnerability. Until the upgrade is applied, avoid processing untrusted notebooks containing crafted cell attachments. Patch status is confirmed by the vendor's versioning information.
CVE-2026-39377: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in jupyter nbconvert
Description
A path traversal vulnerability exists in jupyter nbconvert versions 6. 5 through 7. 17. 0. The vulnerability allows crafted notebook cell attachment filenames to cause arbitrary file writes outside the intended output directory. This occurs because the ExtractAttachmentsPreprocessor does not sanitize attachment filenames before writing to the filesystem. The issue is patched in version 7. 17. 1.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The jupyter nbconvert tool, used to convert Jupyter notebooks to other formats via Jinja templates, contains a path traversal vulnerability (CWE-22) in versions 6.5 up to 7.17.0. The vulnerability arises from the ExtractAttachmentsPreprocessor passing attachment filenames directly to the filesystem without sanitization. This enables an attacker to control the destination path and file extension, allowing arbitrary file writes outside the intended directory. The vulnerability has a CVSS 3.1 score of 6.5, indicating a medium severity. Version 7.17.1 includes a patch that addresses this issue.
Potential Impact
Exploitation of this vulnerability allows an attacker to write files to arbitrary locations on the filesystem where nbconvert is run, potentially overwriting critical files or placing malicious files. This can lead to integrity violations but does not directly impact confidentiality or availability according to the CVSS vector. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade jupyter nbconvert to version 7.17.1 or later, which contains the official patch for this vulnerability. Until the upgrade is applied, avoid processing untrusted notebooks containing crafted cell attachments. Patch status is confirmed by the vendor's versioning information.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-06T21:29:17.350Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e70c3119fe3cd2cda1990e
Added to database: 4/21/2026, 5:33:37 AM
Last enriched: 4/21/2026, 5:33:47 AM
Last updated: 4/21/2026, 7:46:41 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.