Skip to content
MediumVulnerability

CVE-2026-114140: jupyter nbconvert path traversal in extractoutput preprocessor

Identifier
CVE-2026-114140
Published
Record updated
View JSON
Affected
  • nbconvert >= 5.4.0, <= 7.17.1
Fixed in
7.17.2

Summary

CVE-2026-114140 affects nbconvert from 5.4.0 until 7.17.2. In ExtractOutputPreprocessor (nbconvert/preprocessors/extractoutput.py), the attacker-controlled filename in cell output metadata is joined to output_files_dir without being limited to the intended directory. When a victim converts a malicious notebook with the markdown, LaTeX, reStructuredText, or AsciiDoc exporter, path traversal can write attacker-controlled output data to arbitrary locations the victim can access. Merely converting the notebook is enough; re-running the cell is not required.

Mitigation

Fixed in 7.17.2.