6.5medium
nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-7jqv-fw35-gmx9PYSEC-2026-2230
Description
The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. In versions 6.5 through 7.17.0, 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. nbconvert 7.17.1 contains a fix. As a workaround, do not enable `HTMLExporter.embed_images`; it is not enabled by default.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| jupyter nbconvert | >= 6.5, < 7.17.1, from 6.5.0 before 7.17.1 | CVE List, NVD |
| nbconvert (PyPI) | from 6.5.0 before 7.17.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. In versions 6.5 through 7.17.0, 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. nbconvert 7.17.1 contains a fix. As a workaround, do not enable `HTMLExporter.embed_images`; it is not enabled by default.
GitHub Advisory Database
Summary
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.
Patches
Upgrade to nbconvert 7.17.1
Workarounds
Do not enable HTMLExporter.embed_images (it is not enabled by default).
NVD (es)
La herramienta nbconvert, jupyter nbconvert, convierte cuadernos Jupyter a varios otros formatos a través de plantillas Jinja. En las versiones 6.5 a 7.17.0, cuando HTMLExporter.embed_images=True, el renderizador markdown de nbconvert permite la lectura arbitraria de archivos a través de salto de ruta en referencias de imagen. Un cuaderno malicioso puede exfiltrar archivos sensibles del host de conversión incrustándolos como URIs de datos base64 en el HTML de salida. nbconvert 7.17.1 contiene una corrección. Como solución alternativa, no habilite HTMLExporter.embed_images; no está habilitado por defecto.
References
| https://github.com/jupyter/nbconvert/security/advisories/GHSA-7jqv-fw35-gmx9 | advisory, mitigation, vendor-advisory, web | |
| https://github.com/jupyter/nbconvert/releases/tag/v7.17.1 | product, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39378 | advisory | |
| https://github.com/jupyter/nbconvert | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39378 changed 2026-04-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7jqv-fw35-gmx9 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-39378 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2230 changed 2026-07-13 | CC-BY-4.0 |