{"id":"CVE-2026-114140","published":"2026-10-21T20:19:50Z","modified":"2026-10-30T15:01:54Z","title":"nbconvert: File write via path traversal in cell output filenames","vendor":"jupyter","product":"nbconvert","tier":"tail","description":{"text":"The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. From 5.4.0 until 7.17.2, ExtractOutputPreprocessor in nbconvert/preprocessors/extractoutput.py joins the attacker-controlled cell output metadata filename to output_files_dir without limiting the result to the intended directory. When a victim converts a malicious notebook with the markdown, LaTeX, reStructuredText, or AsciiDoc exporter, path traversal in the output filename can write attacker-controlled output data to arbitrary locations accessible to the victim. Running the notebook cell again replaces the malicious output metadata, but merely converting the supplied notebook does not. This issue is fixed in version 7.17.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00459,"percentile":0.31727,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-pjvx-prjx-h659","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/nbconvert/commit/ce4bd99aec31d81d759fa8eeb8643179392ec66f","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.2","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":6.35},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-09","earliestUrl":"https://github.com/federiconbaez/cortex9-nbconvert-output-filename-traversal-model","repos":[{"name":"federiconbaez/cortex9-nbconvert-output-filename-traversal-model","url":"https://github.com/federiconbaez/cortex9-nbconvert-output-filename-traversal-model","stars":0,"created":"2026-11-09"}]},"first":{"date":"2026-11-09","source":"PoC-in-GitHub","url":"https://github.com/federiconbaez/cortex9-nbconvert-output-filename-traversal-model"},"provenance":"source"},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"nbconvert","versions":[">= 5.4.0, < 7.17.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-30T15:01:47.929791Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nbconvert","vulnerableRanges":[">=5.4.0, <7.17.2"],"patched":["7.17.2"],"from":["GHSA-pjvx-prjx-h659"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal in the ExtractOutputPreprocessor component of nbconvert, Jupyter's tool for converting notebooks to other formats: it joins attacker-controlled cell output metadata filenames to the output directory without restricting the result to that directory. An attacker can supply a malicious notebook that causes a victim converting it with the markdown, LaTeX, reStructuredText, or AsciiDoc exporter to write attacker-controlled output data to arbitrary locations the victim can access, with user interaction limited to converting the notebook and no need to re-run its cells.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:03Z"},"euvd":{"id":"EUVD-2026-107551","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53000","published":"2025-12-17","fixed":"7.17.0","kev":false},{"cve":"CVE-2026-39377","published":"2026-04-21","fixed":"7.17.1","kev":false},{"cve":"CVE-2026-39378","published":"2026-04-21","fixed":"7.17.1","kev":false,"link":{"from":"CVE-2026-39378","to":"CVE-2026-114140","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nbconvert","fromFixed":"7.17.1","toFixed":"7.17.2","daysApart":183}]}},{"cve":"CVE-2026-114140","published":"2026-10-21","fixed":"7.17.2","kev":false}],"package":"PyPI:nbconvert"}}