nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding
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).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | nbconvert | >= 6.5.0, < 7.17.1 | 7.17.1 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-22, CWE-23- Platform
- Python (PyPI)
- Package
nbconvert- Disclosed
- 21.04.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2230 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-7jqv-fw35-gmx9 - CC BY 4.0
Vulnerability history: nbconvert
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 08.2022 04.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 3
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 2
-
nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.