# CVE-2026-114140: nbconvert: File write via path traversal in cell output filenames

- Severity: High 8.8 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-21T20:19:50.116Z
- Modified: 2026-10-30T15:16:45.340Z
- Also known as: GHSA-pjvx-prjx-h659
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jupyter nbconvert: >= 5.4.0, < 7.17.2
- nbconvert (PyPI): from 5.4.0 before 7.17.2

## Every score

- GitHub_M: CVSS:4.0 8.8 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/jupyter/nbconvert/security/advisories/GHSA-pjvx-prjx-h659> (exploit, web)
- <https://github.com/jupyter/nbconvert/commit/ce4bd99aec31d81d759fa8eeb8643179392ec66f> (web)
- <https://github.com/jupyter/nbconvert/releases/tag/v7.17.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-114140> (advisory)
- <https://github.com/jupyter/nbconvert> (package)

## Sources

- CVE List: [CVE-2026-114140](https://www.cve.org/CVERecord?id=CVE-2026-114140), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-pjvx-prjx-h659](https://github.com/advisories/GHSA-pjvx-prjx-h659), CC-BY-4.0, modified 2026-10-22
- NVD: [CVE-2026-114140](https://nvd.nist.gov/vuln/detail/CVE-2026-114140), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-114140 · Whole record: https://cve.day/CVE-2026-114140.json · Rebuilt by cve.day 2026-11-25T22:59:46.684Z
