nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding
CVE-2026-39378 · GHSA-7jqv-fw35-gmx9 · published 2026-04-21
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.31%
- Fixed in
- 7.17.1
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
When HTMLExporter.embed_images=True, nbconvert's markdown renderer allows arbitrary file read via path traversal in image references. A malicious notebook can exfiltrate sensitive files from the conversion host by embedding them as base64 data URIs in the output HTML.
Upgrade nbconvert to 7.17.1 or later.
Upgrade to nbconvert 7.17.1
Do not enable HTMLExporter.embed_images (it is not enabled by default).
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| nbconvert | PyPI | >= 6.5.0, < 7.17.1 | 7.17.1 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- Highnbconvert: Arbitrary file write through path traversal in cell output filenames when exporting to md, latex, rst and asciidocnbconvert
- Highnbconvert has an uncontrolled search path that leads to unauthorized code execution on Windowsnbconvert
- Mediumjupyter/nbconvert allows Cross-site Scripting (XSS) via unsanitized `text/vnd.mermaid` output in HTML exportsnbconvert
- Mediumnbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenamesnbconvert
- Mediumnbconvert vulnerable to cross-site scripting (XSS) via multiple exploit pathsnbconvert
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.