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 arises from the ExtractAttachmentsPreprocessor component, which does not sanitize attachment filenames, allowing crafted filenames to write files outside the intended output directory. This enables an attacker to control the destination path and file extension of arbitrary files written to the filesystem. Version 7. 17. 1 includes a patch addressing this issue. The vulnerability has a medium severity with a CVSS score of 6.
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 through 7.17.0. The ExtractAttachmentsPreprocessor component passes attachment filenames directly to the filesystem without sanitization, allowing crafted filenames to escape the intended output directory and write arbitrary files. This vulnerability permits full control over the file path and extension of files written during notebook conversion. The issue is fixed in version 7.17.1.
Potential Impact
An attacker can write arbitrary files to locations outside the intended output directory when processing maliciously crafted notebooks. This can lead to unauthorized file creation or modification, potentially impacting system integrity. The vulnerability does not affect confidentiality or availability directly and requires user interaction to trigger. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade jupyter nbconvert to version 7.17.1 or later, which contains a patch for this vulnerability. Until upgraded, avoid processing untrusted notebooks with nbconvert to prevent exploitation. Patch status is confirmed by the vendor's versioning information indicating the fix in 7.17.1.
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 arises from the ExtractAttachmentsPreprocessor component, which does not sanitize attachment filenames, allowing crafted filenames to write files outside the intended output directory. This enables an attacker to control the destination path and file extension of arbitrary files written to the filesystem. Version 7. 17. 1 includes a patch addressing this issue. The vulnerability has a medium severity with a CVSS score of 6.
CVSS v3.1
Score 6.5medium
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 through 7.17.0. The ExtractAttachmentsPreprocessor component passes attachment filenames directly to the filesystem without sanitization, allowing crafted filenames to escape the intended output directory and write arbitrary files. This vulnerability permits full control over the file path and extension of files written during notebook conversion. The issue is fixed in version 7.17.1.
Potential Impact
An attacker can write arbitrary files to locations outside the intended output directory when processing maliciously crafted notebooks. This can lead to unauthorized file creation or modification, potentially impacting system integrity. The vulnerability does not affect confidentiality or availability directly and requires user interaction to trigger. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade jupyter nbconvert to version 7.17.1 or later, which contains a patch for this vulnerability. Until upgraded, avoid processing untrusted notebooks with nbconvert to prevent exploitation. Patch status is confirmed by the vendor's versioning information indicating the fix in 7.17.1.
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/28/2026, 6:03:05 AM
Last updated: 6/4/2026, 12:45:17 AM
Views: 85
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.