{"answers":{"affected":"3 open source packages ship an affected version, including nbconvert. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-39377 in the wild and no public exploit code.","fix":"Upgrade nbconvert to 7.17.1 or later.","what":"CVE-2026-39377 is a medium-severity vulnerability in jupyter nbconvert, published on 21 Apr 2026."},"fix_prompt":"Check this codebase for CVE-2026-39377 and fix it if it is affected.\n\nWhat it is: CVE-2026-39377 is a medium-severity vulnerability in jupyter nbconvert, published on 21 Apr 2026. \nExploitation: There is no known exploitation of CVE-2026-39377 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- nbconvert (PyPI): affected from 6.5.0; fixed in 7.17.1\n- nbconvert (PyPI): affected from 6.5.0; fixed in 7.17.1\n- nbconvert (PyPI): affected from 6.5.0; fixed in 7.17.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-39377/ (Markdown: https://insights.sbomify.com/CVE-2026-39377/index.md)","id":"CVE-2026-39377","markdown":"https://insights.sbomify.com/CVE-2026-39377/index.md","name":"CVE-2026-39377","record":{"aliases":["CLEANSTART-2026-HY94755","CLEANSTART-2026-VM36250","DEBIAN-CVE-2026-39377","GHSA-4c99-qj7h-p3vg","PYSEC-2026-2229","UBUNTU-CVE-2026-39377"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"nbconvert","vendor":"jupyter"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames","id":"CVE-2026-39377","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding","id":"CVE-2026-39378"},"packages":[{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":null,"source":"GHSA-4c99-qj7h-p3vg"},{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"GHSA-4c99-qj7h-p3vg"},{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"PYSEC-2026-2229"}],"prev":{"headline":"FastFeedParser has an infinite redirect loop DoS via meta-refresh chain","id":"CVE-2026-39376"},"products":["nbconvert"],"published":"2026-04-21","related":[{"cvss_score":8.5,"headline":"nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows","id":"CVE-2025-53000","kev_date_added":null,"published":"2025-12-17"},{"cvss_score":6.5,"headline":"nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding","id":"CVE-2026-39378","kev_date_added":null,"published":"2026-04-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-21","vendors":["jupyter"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-39377/"}