CVE-2025-53000: Nbconvert Nbconvert Has An Uncontrolled Search Vulnerability

HIGH
Advisory Identifier: GHSA-xm59-rqc7-hhvf
CWE-427
Published
Advisory Summary

CVE-2025-53000 is a HIGH nbconvert has an uncontrolled search vulnerability (CWE-427: Uncontrolled Search Path Element) affecting Nbconvert libraries in the PyPI ecosystem. The issue involves nbconvert has an uncontrolled search path that leads to unauthorized code execution on windows. Remediation is available by upgrading affected packages to version 7.17.0.

CVE-2025-53000 at a Glance

CVE Identifier CVE-2025-53000
GHSA Identifier GHSA-xm59-rqc7-hhvf
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-427: Uncontrolled Search Path Element
Affected Product Nbconvert
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-53000

To remediate this vulnerability, upgrade all affected Nbconvert dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nbconvert fixed: 7.17.0
pip install nbconvert>=7.17.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show nbconvert

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-53000, inspect your installed packages using pip:

pip show nbconvert

Analyze the terminal output to locate any version of Nbconvert in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.17.0), your application is affected.

Note: The pip show nbconvert command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-427: Uncontrolled Search Path Element, where the product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors. In Nbconvert, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary On Windows, 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](https://en.wikipedia.org/wiki/Batch_file), 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. ### Details _Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._ `nbconvert` searches for an `inkscape` executable when converting notebooks to PDFs here: https://github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/preprocessors/svg2pdf.py#L104 The MITRE page on [CWE-427 (Uncontrolled Search Path Element)](https://cwe.mitre.org/data/definitions/427.html) summarizes the root cause succinctly: > In Windows-based systems, when the `LoadLibrary` or `LoadLibraryEx` function is called with a DLL name that does not contain a fully qualified path, the function follows a search order that includes two path elements that might be uncontrolled: > - the directory from which the program has been loaded > - the current working directory ### PoC _Complete instructions, including specific configuration details, to reproduce the vulnerability._ 1. Create a directory containing: - A hidden bat file called `inkscape.bat` containing `msg * "You've been hacked!"` - A dummy ipynb file called `Machine_Learning.ipynb` 2. Run the command `jupyter nbconvert --to pdf Machine_Learning.ipynb`. 3. Wait a few seconds, and you should see a popup showing the message "You've been hacked!" ### Impact All Windows users.

CVE-2025-53000 Affected Nbconvert Versions

1 component(s)
Fixed Versions:
7.17.0
Product / Package Ecosystem Affected Versions Fixed Version
nbconvert
PyPI
< 7.17.0
7.17.0

References

Frequently Asked Questions

What is CVE-2025-53000?
CVE-2025-53000 is a security vulnerability in Nbconvert involving nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows under CWE-427: Uncontrolled Search Path Element.
Which Nbconvert versions are affected?
Affected versions include releases prior to 7.17.0 across affected packages: nbconvert.
What version fixes CVE-2025-53000?
Upgrading to 7.17.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nbconvert affected?
Yes, nbconvert is affected in releases prior to 7.17.0. Upgrade your dependency to 7.17.0 or later.
What CWE is associated with CVE-2025-53000?
CVE-2025-53000 is classified under CWE-427: Uncontrolled Search Path Element (The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.).
How can I check PyPI dependencies for CVE-2025-53000?
Run the dependency tree command: 'pip show nbconvert'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xm59-rqc7-hhvf",
  "modified" : "2026-02-10T13:48:26Z",
  "published" : "2025-12-18T22:03:08Z",
  "aliases" : [ "CVE-2025-53000" ],
  "summary" : "nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows",
  "details" : "### Summary\n\nOn Windows, 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](https://en.wikipedia.org/wiki/Batch_file), capable of arbitrary code execution.\n\nWhen 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.\n\n### Details\n_Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer._\n\n`nbconvert` searches for an `inkscape` executable when converting notebooks to PDFs here: https://github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/preprocessors/svg2pdf.py#L104\n\nThe MITRE page on [CWE-427 (Uncontrolled Search Path Element)](https://cwe.mitre.org/data/definitions/427.html) summarizes the root cause succinctly:\n\n> In Windows-based systems, when the `LoadLibrary` or `LoadLibraryEx` function is called with a DLL name that does not contain a fully qualified path, the function follows a search order that includes two path elements that might be uncontrolled:\n> - the directory from which the program has been loaded\n> - the current working directory\n\n### PoC\n\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n1. Create a directory containing: \n\n    - A hidden bat file called `inkscape.bat` containing `msg * \"You've been hacked!\"`\n\n    - A dummy ipynb file called `Machine_Learning.ipynb`\n\n2. Run the command `jupyter nbconvert --to pdf Machine_Learning.ipynb`.\n\n3. Wait a few seconds, and you should see a popup showing the message \"You've been hacked!\" \n\n### Impact\n\nAll Windows users.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nbconvert"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.17.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/nbconvert/security/advisories/GHSA-xm59-rqc7-hhvf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53000"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/nbconvert/issues/2258"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/nbconvert/commit/c9ac1d1040459ed1ff9eb34e9918ce5a87cf9d71"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jupyter/nbconvert"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/preprocessors/svg2pdf.py#L104"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jupyter/nbconvert/releases/tag/v7.17.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.imperva.com/blog/code-execution-in-jupyter-notebook-exports"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-427" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-18T22:03:08Z",
    "nvd_published_at" : "2025-12-17T21:16:14Z"
  }
}