CVE-2025-53000CWE-427

nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows

High · published December 17, 2025

CVSS v4.0
8.5
EPSS
0%
Percentile
16.8
In the wild
Unconfirmed
What it is

⚡ Converting notebooks to PDFs just got tricky! If you use Jupyter's nbconvert tool on Windows, an SVG in your notebook could unwittingly trigger arbitrary code execution. 🔥 Think of it like a chef who accidentally includes a risky ingredient in a recipe—when served, it could ruin the meal entirely! In this case, the SVG is the ingredient, and the unexpected `inkscape.bat` file is the unwelcome surprise on your plate. An attacker can exploit this vulnerability by placing a malicious `inkscape.bat` file in the directory. When a user tries to convert their Jupyter notebook to PDF, this batch script runs without their knowledge, potentially causing chaos on their system. The consequences could range from data theft to complete system compromise, making it a serious issue for any users on Windows.

Put simply

Think of it like a chef who accidentally includes a risky ingredient in a recipe—when served, it could ruin the meal entirely! In this case, the SVG is the ingredient, and the unexpected `inkscape.bat` file is the unwelcome surprise on your plate. The vulnerability in nbconvert allows unauthorized code execution during the conversion of notebooks with SVG output to PDFs. Versions up to 7.16.6 on Windows will execute a crafted `inkscape.bat` file that an attacker has placed in the same directory, exploiting trust in the conversion process.

What to do

An attacker can exploit this vulnerability by placing a malicious `inkscape.bat` file in the directory. When a user tries to convert their Jupyter notebook to PDF, this batch script runs without their knowledge, potentially causing chaos on their system. The consequences could range from data theft to complete system compromise, making it a serious issue for any users on Windows. To safeguard your systems, immediately update nbconvert to version 7.17.0 or later. Additionally, ensure that you audit your notebook directories for any suspicious batch files. It's also wise to educate users on the risks of converting notebooks from untrusted sources. You've got this! By following these steps, you’ll not only secure your system but also bolster your status as a security hero! 🛡️

The record
Technical detail
CVSS v4.0
8.5 · HIGH
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
EPSS
0.00260 · 16.8th percentile
Weakness
CWE-427 · Uncontrolled Search Path Element
Published
2025-12-17T20:27Z
EPSS history
Timeline
  • 17 DEC 20:27Z
    nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows
    cvelistv5