# CVE-2026-39377: nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- 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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-04-21T00:14:59.937Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-4c99-qj7h-p3vg, PYSEC-2026-2229
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jupyter nbconvert: >= 6.5, < 7.17.1; from 6.5.0 before 7.17.1
- nbconvert (PyPI): from 6.5.0 before 7.17.1

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/jupyter/nbconvert/releases/tag/v7.17.1> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39377> (advisory)
- <https://github.com/jupyter/nbconvert> (package)

## Sources

- CVE List: [CVE-2026-39377](https://www.cve.org/CVERecord?id=CVE-2026-39377), CVE Terms of Use, modified 2026-04-21
- GitHub Advisory Database: [GHSA-4c99-qj7h-p3vg](https://github.com/advisories/GHSA-4c99-qj7h-p3vg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39377](https://nvd.nist.gov/vuln/detail/CVE-2026-39377), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2229](https://osv.dev/vulnerability/PYSEC-2026-2229), CC-BY-4.0, modified 2026-07-13

---

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