{"id":"CVE-2025-53000","published":"2025-12-17T20:27:59Z","modified":"2026-02-18T18:36:34Z","title":"nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows","vendor":"jupyter","product":"nbconvert","tier":"tail","description":{"text":"The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. Versions of nbconvert up to and including 7.16.6 on Windows have a vulnerability in which converting a notebook containing SVG output to a PDF results in unauthorized code execution. Specifically, a third party can create a `inkscape.bat` file that defines a Windows batch script, capable of arbitrary code execution. When a user runs `jupyter nbconvert --to pdf` on a notebook containing SVG output to a PDF on a Windows platform from this directory, the `inkscape.bat` file is run unexpectedly. This issue has been patched in version 7.17.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00286,"percentile":0.13762,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-xm59-rqc7-hhvf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jupyter/nbconvert/issues/2258","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/nbconvert/commit/c9ac1d1040459ed1ff9eb34e9918ce5a87cf9d71","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/preprocessors/svg2pdf.py#L104","tags":["x_refsource_MISC"]},{"url":"https://github.com/jupyter/nbconvert/releases/tag/v7.17.0","tags":["x_refsource_MISC"]},{"url":"https://www.imperva.com/blog/code-execution-in-jupyter-notebook-exports","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":2.75},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"jupyter","affectedVersions":[{"vendor":"jupyter","product":"nbconvert","versions":["< 7.17.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-17T20:43:43.579788Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"nbconvert","vulnerableRanges":["<7.17.0"],"patched":["7.17.0"],"from":["GHSA-xm59-rqc7-hhvf","PYSEC-2026-1691"],"provenance":"source"}],"summary":{"text":"The nbconvert tool from Jupyter contains an uncontrolled search path flaw on Windows, where converting a notebook with SVG output to PDF can cause a batch file named inkscape.bat to run unexpectedly. An attacker who can place such a file in the directory from which the user runs the conversion can execute arbitrary code, and this requires the victim to run the jupyter nbconvert --to pdf command in that directory on a notebook containing SVG output.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:31Z"},"euvd":{"id":"EUVD-2025-203957","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32862","published":"2022-08-18","fixed":"6.5.1","kev":false},{"cve":"CVE-2025-53000","published":"2025-12-17","fixed":"7.17.0","kev":false},{"cve":"CVE-2026-39377","published":"2026-04-21","fixed":"7.17.1","kev":false,"link":{"from":"CVE-2025-53000","to":"CVE-2026-39377","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nbconvert","fromFixed":"7.17.0","toFixed":"7.17.1","daysApart":125}]}},{"cve":"CVE-2026-39378","published":"2026-04-21","fixed":"7.17.1","kev":false,"link":{"from":"CVE-2025-53000","to":"CVE-2026-39378","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:nbconvert","fromFixed":"7.17.0","toFixed":"7.17.1","daysApart":125}]}},{"cve":"CVE-2026-114140","published":"2026-10-21","fixed":"7.17.2","kev":false}],"package":"PyPI:nbconvert"}}