Advisory

GHSA-7jqv-fw35-gmx9

Also known as: CVE-2026-39378, PYSEC-2026-2230

Summary

nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-21 17:18 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

nbconvert

PyPI · All systems

Affected

  • introduced 6.5.0, fixed 7.17.1 (ecosystem)

Fixed versions

7.17.1

Fix

  • Fixed version 7.17.1
    pip install --upgrade nbconvert==7.17.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences