Advisory

PYSEC-2026-2229

Also known as: CVE-2026-39377, GHSA-4c99-qj7h-p3vg

Summary

The record has no summary.

Details

The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. Versions 6.5 through 7.17.0 allow arbitrary file writes to locations outside the intended output directory when processing notebooks containing crafted cell attachment filenames. The ExtractAttachmentsPreprocessor passes attachment filenames directly to the filesystem without sanitization, enabling path traversal attacks. This vulnerability provides complete control over both the destination path and file extension. Version 7.17.1 contains a patch.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Dates

Published
2026-04-21 01:16 UTC
Modified
2026-07-13 07:15 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: PyPA Advisory Database · CC BY 4.0

Sources & licences