{"id":"CVE-2026-39377","aliases":["CVE-2026-39377","GHSA-4c99-qj7h-p3vg","PYSEC-2026-2229"],"related":[],"kind":"vulnerability","state":"published","title":"nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"# Arbitrary File Write via Path Traversal in Cell Attachment Filenames\n\n## Summary\n\nnbconvert allows 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.\n\n\n## Impact\n\nThis vulnerability allows writing files with arbitrary content to arbitrary filesystem locations, limited only by the permissions of the process running nbconvert. The attacker controls:\n- Full destination path (via `../` traversal)\n- Filename\n- File extension\n- File content\n\n## Patches\n\n- upgrade to nbconvert v7.17.1\n\n## Workarounds\n\ndisable ExtractAttachmentsPreprocessor by setting:\n\n```python\nc. ExtractAttachmentsPreprocessor.enabled = False\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"La herramienta nbconvert, jupyter nbconvert, convierte cuadernos Jupyter a varios otros formatos a través de plantillas Jinja. Las versiones 6.5 hasta la 7.17.0 permiten escrituras de archivos arbitrarias a ubicaciones fuera del directorio de salida previsto al procesar cuadernos que contienen nombres de archivo de adjuntos de celda manipulados. El ’ExtractAttachmentsPreprocessor’ pasa los nombres de archivo de los adjuntos directamente al sistema de archivos sin saneamiento, lo que permite ataques de salto de ruta. Esta vulnerabilidad proporciona control completo tanto sobre la ruta de destino como sobre la extensión del archivo. La versión 7.17.1 contiene un parche.","source":"nvd"}],"published":"2026-04-21T00:14:59.937Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"version":">= 6.5, < 7.17.1","status":"affected"}],"vendor":"jupyter","product":"nbconvert","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.5.0","status":"affected","fixed":"7.17.1"}],"ecosystem":"PyPI","package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.5.0","fixed":"7.17.1"}],"vendor":"jupyter","product":"nbconvert","cpe":"cpe:2.3:a:jupyter:nbconvert:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"6.5.0","status":"affected","fixed":"7.17.1"}],"ecosystem":"PyPI","package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"pysec"}],"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-4c99-qj7h-p3vg","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.1","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39377","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jupyter/nbconvert","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-21T16:01:22.179Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39377","url":"https://www.cve.org/CVERecord?id=CVE-2026-39377","licence":"CVE Terms of Use","modified":"2026-04-21T19:49:24.475Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4c99-qj7h-p3vg","url":"https://github.com/advisories/GHSA-4c99-qj7h-p3vg","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:00.940Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39377","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39377","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2229","url":"https://osv.dev/vulnerability/PYSEC-2026-2229","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:37.671Z"}],"updatedAt":"2026-11-25T22:59:19.078Z","epss":{"score":0.00271,"percentile":0.20672,"date":"2026-12-01T12:00:22.000Z"}}