NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-39378: nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding

mediumCVSS 3.1 6.5GHSA-7jqv-fw35-gmx9

Summary When HTMLExporter.embedimages=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.embedimages (it is not enabled by default).

Published Apr 21, 2026

Affected packages

nbconvert

Ecosystem
PyPI
Affected
>= 6.5.0, < 7.17.1
Fixed in
7.17.1
Check
pip show nbconvert

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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).

Credited to g0blinResearch.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries