Skip to content

chore(deps): update dependency nbconvert to v7.17.1 [security] - #17

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-nbconvert-vulnerability
Open

chore(deps): update dependency nbconvert to v7.17.1 [security]#17
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-nbconvert-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Feb 10, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
nbconvert ==7.9.2==7.17.1 age adoption passing confidence

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

CVE-2025-53000 / GHSA-xm59-rqc7-hhvf

More information

Details

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, 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) 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.

Severity

  • CVSS Score: 8.5 / 10 (High)
  • Vector String: 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

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


nbconvert has an Arbitrary File Read via Path Traversal in HTMLExporter Image Embedding

CVE-2026-39378 / GHSA-7jqv-fw35-gmx9

More information

Details

Summary

When HTMLExporter.embed_images=True, nbconvert's markdown renderer allows arbitrary file read via path traversal in image references. A malicious notebook can exfiltrate sensitive files from the conversion host by embedding them as base64 data URIs in the output HTML.

Patches

Upgrade to nbconvert 7.17.1

Workarounds

Do not enable HTMLExporter.embed_images (it is not enabled by default).

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


nbconvert has an Arbitrary File Write via Path Traversal in Cell Attachment Filenames

CVE-2026-39377 / GHSA-4c99-qj7h-p3vg

More information

Details

Arbitrary File Write via Path Traversal in Cell Attachment Filenames
Summary

nbconvert allows arbitrary file writes to locations outside the intended output directory when processing notebooks containing crafted cell attachment filenames. The ExtractAttachmentsPreprocessor passes attachment filenames directly to the filesystem without sanitization, enabling path traversal attacks. This vulnerability provides complete control over both the destination path and file extension.

Impact

This vulnerability allows writing files with arbitrary content to arbitrary filesystem locations, limited only by the permissions of the process running nbconvert. The attacker controls:

  • Full destination path (via ../ traversal)
  • Filename
  • File extension
  • File content
Patches
  • upgrade to nbconvert v7.17.1
Workarounds

disable ExtractAttachmentsPreprocessor by setting:

c. ExtractAttachmentsPreprocessor.enabled = False

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title chore(deps): update dependency nbconvert to v7.17.0 [security] chore(deps): update dependency nbconvert to v7.17.1 [security] Apr 30, 2026
@renovate
renovate Bot force-pushed the renovate/pypi-nbconvert-vulnerability branch from b577587 to dd3322d Compare April 30, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants