CVE-2026-39377: nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames

Published Apr 21, 2026
·
Updated

# Arbitrary File Write via Path Traversal in Cell Attachment Filenames ## Summary nbconvert allows 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. ## Impact This vulnerability allows writing files with arbitrary content to arbitrary filesystem locations, limited only by the permissions of the process running nbconvert. The attacker controls: - Full destination path (via `../` traversal) - Filename - File extension - File content ## Patches - upgrade to nbconvert v7.17.1 ## Workarounds disable ExtractAttachmentsPreprocessor by setting: ```python c. ExtractAttachmentsPreprocessor.enabled = False ```

Affected Software

3 affected componentsFixes available
pypi/nbconvert>=6.5<=7.17.0
pip/nbconvert>=6.5.0<7.17.1
7.17.1
jupyter Nbconvert Python>=6.5.0<7.17.1

Event History

Apr 21, 2026
CVE Published
via MITRE·12:14 AM
Data Sourced
via MITRE·12:14 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·05:18 PM
Data Sourced
via GitHub·05:18 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-39377?

CVE-2026-39377 has been rated as a high severity vulnerability due to its potential for arbitrary file write.

2

How do I fix CVE-2026-39377?

To fix CVE-2026-39377, upgrade nbconvert to version 7.17.1 or later.

3

What types of files are affected by CVE-2026-39377?

CVE-2026-39377 affects files generated by Jupyter nbconvert which can lead to unintended file writes in output directories.

4

Which versions of nbconvert are impacted by CVE-2026-39377?

CVE-2026-39377 impacts nbconvert versions from 6.5 to 7.17.0.

5

Is CVE-2026-39377 exploitable in a shared environment?

Yes, CVE-2026-39377 is particularly exploitable in shared environments where user permissions are misconfigured.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203