{"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-39378 in the wild and no public exploit code.","fix":"Upgrade nbconvert to 7.17.1 or later.","what":"CVE-2026-39378 is a medium-severity path traversal vulnerability in jupyter nbconvert, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-39378 and fix it if it is affected.\n\nWhat it is: CVE-2026-39378 is a medium-severity path traversal vulnerability in jupyter nbconvert, published on 21 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-39378 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-39378/ (Markdown: https://insights.sbomify.com/CVE-2026-39378/index.md)","id":"CVE-2026-39378","markdown":"https://insights.sbomify.com/CVE-2026-39378/index.md","name":"CVE-2026-39378","record":{"aliases":["CLEANSTART-2026-RQ83656","CLEANSTART-2026-VX32079","DEBIAN-CVE-2026-39378","GHSA-7jqv-fw35-gmx9","PYSEC-2026-2230","UBUNTU-CVE-2026-39378"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Jupyter nbconvert library","requires_auth":"none","summary":"Attackers can read arbitrary files from the host by exploiting path traversal in image embedding when the embed_images option is enabled.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","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:H/I:N/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. In versions 6.5 through 7.17.0, when `HTMLExporter.embed_images=True`, nbconvert's markdown renderer allows arbitrary file read via path traversal in image references. A malicious notebook can exfiltrate sensitive files from the conversion host by embedding them as base64 data URIs in the output HTML. nbconvert 7.17.1 contains a fix. As a workaround, do not enable `HTMLExporter.embed_images`; it is not enabled by default.","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 Read via Path Traversal in HTMLExporter Image Embedding","id":"CVE-2026-39378","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Open Source Point of Sale has Stored XSS in Stock Location (Configuration)","id":"CVE-2026-39380"},"packages":[{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":null,"source":"GHSA-7jqv-fw35-gmx9"},{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"GHSA-7jqv-fw35-gmx9"},{"ecosystem":"PyPI","fixed":["7.17.1"],"introduced":["6.5.0"],"last_affected":[],"package":"nbconvert","purl":"pkg:pypi/nbconvert","source":"PYSEC-2026-2230"}],"prev":{"headline":"nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames","id":"CVE-2026-39377"},"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 Write via Path Traversal in Cell Attachment Filenames","id":"CVE-2026-39377","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":"Attackers can read arbitrary files from the host by exploiting path traversal in image embedding when the embed_images option is enabled.","url":"https://insights.sbomify.com/CVE-2026-39378/"}