Vulnerability · Published Apr 21, 2026 · Assigned by GitHub_M
CVE-2026-39378nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding
Medium 6.5
In plain English
A medium-severity path traversal in nbconvert from jupyter. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nbconvert | no fix listed | DEBIAN-CVE-2026-39378 |
| Debian:13 | nbconvert | 7.16.6-1+deb13u1 | DEBIAN-CVE-2026-39378 |
| Debian:14 | nbconvert | 7.17.1-1 | DEBIAN-CVE-2026-39378 |
| PyPI | nbconvert | 7.17.1 | GHSA-7jqv-fw35-gmx9 |
| PyPI | nbconvert | 7.17.1 | PYSEC-2026-2230 |
| Ubuntu:22.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39378 |
| Ubuntu:24.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39378 |
| Ubuntu:25.10 | nbconvert | no fix listed | UBUNTU-CVE-2026-39378 |
| Ubuntu:26.04:LTS | nbconvert | no fix listed | UBUNTU-CVE-2026-39378 |
| Ubuntu:26.10 | nbconvert | no fix listed | UBUNTU-CVE-2026-39378 |
Affected products (as reported)
Weakness: CWE-22, CWE-73 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://github.com/jupyter/nbconvert/security/advisories/GHSA-7jqv-fw35-gmx9 x_refsource_CONFIRM
- https://github.com/jupyter/nbconvert/releases/tag/v7.17.1 x_refsource_MISC