Uncontrolled Search Path Element Affecting nbconvert package, versions [,7.17.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
0.26% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-NBCONVERT-14463457
  • published18 Dec 2025
  • disclosed17 Dec 2025
  • creditYohann Sillam

Introduced: 17 Dec 2025

CVE-2025-53000  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade nbconvert to version 7.17.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element due to unsafe executable resolution when exporting notebooks containing SVG output to PDF. During export, the svg2pdf.py preprocessor resolves the inkscape executable using shutil.which(), which on Windows includes the current working directory in the search path by default. An attacker can place a malicious executable named inkscape in the notebook’s directory and trick a victim into exporting the notebook, causing arbitrary code to execute with the victim’s privileges during the conversion process.

Notes:

This vulnerability is only exploitable on Windows.

The behavior affects supported Python versions prior to 3.12 (which ignore the NoDefaultCurrentDirectoryInExePath setting) and also impacts Python 3.12+ when the environment variable is unset (the Windows default).

Workaround

This vulnerability can be mitigated by disabling the searching of inkscape software from CWD and relying on fixed safe search places.

It is also recommended to enable the NoDefaultCurrentDirectoryInExePath environment variable to reduce the risk of unintentionally executing files from untrusted locations.

CVSS Base Scores

version 4.0
version 3.1