Vulnerabilities · 2025 · Jupyter
CVE-2025-53000
Jupyter Nbconvert vulnerability
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.
Affected products
Nbconvert. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Jupyter Nbconvert runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- www.imperva.com/blog/code-execution-in-jupyter-notebook-exports · Exploit
- github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/prepr
- github.com/jupyter/nbconvert/commit/c9ac1d1040459ed1ff9eb34e9918ce5a87cf9d71
- github.com/jupyter/nbconvert/issues/2258
- github.com/jupyter/nbconvert/releases/tag/v7.17.0
- nvd.nist.gov/vuln/detail/CVE-2025-53000
- github.com/jupyter/nbconvert/security/advisories/GHSA-xm59-rqc7-hhvf
- github.com/advisories/GHSA-xm59-rqc7-hhvf
- nvd.nist.gov/vuln/detail/CVE-2025-53000
- cve.org/CVERecord?id=CVE-2025-53000
More vulnerabilities in Jupyter products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.