Update dependency nbconvert to v7.17.0 [SECURITY]#519
Merged
Conversation
49932c9 to
309c73c
Compare
309c73c to
9740198
Compare
9740198 to
84b52b0
Compare
84b52b0 to
2ecd771
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==7.16.6→==7.17.0GitHub Vulnerability Alerts
CVE-2025-53000
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.batfile that defines a Windows batch script, capable of arbitrary code execution.When a user runs
jupyter nbconvert --to pdfon a notebook containing SVG output to a PDF on a Windows platform from this directory, theinkscape.batfile is run unexpectedly.Details
Give all details on the vulnerability. Pointing to the incriminated source code is very helpful for the maintainer.
nbconvertsearches for aninkscapeexecutable when converting notebooks to PDFs here: https://github.com/jupyter/nbconvert/blob/4f61702f5c7524d8a3c4ac0d5fc33a6ac2fa36a7/nbconvert/preprocessors/svg2pdf.py#L104The MITRE page on CWE-427 (Uncontrolled Search Path Element) summarizes the root cause succinctly:
PoC
Complete instructions, including specific configuration details, to reproduce the vulnerability.
Create a directory containing:
A hidden bat file called
inkscape.batcontainingmsg * "You've been hacked!"A dummy ipynb file called
Machine_Learning.ipynbRun the command
jupyter nbconvert --to pdf Machine_Learning.ipynb.Wait a few seconds, and you should see a popup showing the message "You've been hacked!"
Impact
All Windows users.
Configuration
📅 Schedule: Branch creation - "" (UTC), 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.
This PR was generated by Mend Renovate. View the repository job log.