nbconvert: Arbitrary file write through path traversal in cell output filenames when exporting to md, latex, rst and asciidoc
CVE-2026-114140 · GHSA-pjvx-prjx-h659 · published 2026-10-22
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.46%
- Fixed in
- 7.17.2
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
If a victim runs nbconvert on a malicious ipynb file, it can create some files with arbitrary data in arbitrary locations, i.e. override authorized_keys. Note that running the cell with jupyter overrides the output, so it would "clean up" malicious cells.
Upgrade nbconvert to 7.17.2 or later.
Fixed in https://github.com/jupyter/nbconvert/commit/ce4bd99aec31d81d759fa8eeb8643179392ec66f 7.17.2
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| nbconvert | PyPI | >= 5.4.0, <= 7.17.1 | 7.17.2 |
- 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 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 has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embeddingnbconvert
- 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.