CVE-2026-39378: 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 when the HTMLExporter. embed_images option is enabled. This flaw allows a malicious notebook to read arbitrary files from the host system by embedding them as base64 data URIs in the output HTML. The vulnerability is fixed in version 7. 17. 1. By default, HTMLExporter.
AI Analysis
Technical Summary
The nbconvert tool in jupyter converts notebooks to other formats using Jinja templates. In affected versions (6.5 to before 7.17.1), enabling HTMLExporter.embed_images causes the markdown renderer to improperly restrict pathnames, allowing path traversal attacks. This enables reading arbitrary files from the host during conversion, which can be exfiltrated as embedded base64 images in the HTML output. The issue is addressed in nbconvert 7.17.1. Disabling the embed_images option prevents exploitation.
Potential Impact
An attacker who can supply a malicious notebook and trigger conversion with embed_images enabled can read sensitive files from the conversion host. This leads to confidentiality loss of arbitrary files. There is no impact on integrity or availability. The CVSS score is 6.5 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and high confidentiality impact.
Mitigation Recommendations
Upgrade to jupyter nbconvert version 7.17.1 or later where the vulnerability is fixed. If upgrading is not immediately possible, do not enable the HTMLExporter.embed_images option, as it is disabled by default and enabling it triggers the vulnerability. No other specific mitigations are indicated.
CVE-2026-39378: 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 when the HTMLExporter. embed_images option is enabled. This flaw allows a malicious notebook to read arbitrary files from the host system by embedding them as base64 data URIs in the output HTML. The vulnerability is fixed in version 7. 17. 1. By default, HTMLExporter.
CVSS v3.1
Score 6.5medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The nbconvert tool in jupyter converts notebooks to other formats using Jinja templates. In affected versions (6.5 to before 7.17.1), enabling HTMLExporter.embed_images causes the markdown renderer to improperly restrict pathnames, allowing path traversal attacks. This enables reading arbitrary files from the host during conversion, which can be exfiltrated as embedded base64 images in the HTML output. The issue is addressed in nbconvert 7.17.1. Disabling the embed_images option prevents exploitation.
Potential Impact
An attacker who can supply a malicious notebook and trigger conversion with embed_images enabled can read sensitive files from the conversion host. This leads to confidentiality loss of arbitrary files. There is no impact on integrity or availability. The CVSS score is 6.5 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and high confidentiality impact.
Mitigation Recommendations
Upgrade to jupyter nbconvert version 7.17.1 or later where the vulnerability is fixed. If upgrading is not immediately possible, do not enable the HTMLExporter.embed_images option, as it is disabled by default and enabling it triggers the vulnerability. No other specific mitigations are indicated.
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: 69e70c3119fe3cd2cda19912
Added to database: 4/21/2026, 5:33:37 AM
Last enriched: 4/28/2026, 6:05:44 AM
Last updated: 6/5/2026, 2:37:27 PM
Views: 96
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.