[Snyk] Security upgrade torch from 1.13.1 to 2.9.0#75
Open
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052971
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| pytessy==0.1.0 | ||
| stable-baselines3==1.3.0 | ||
| vgamepad==0.0.6 | ||
| torch>=2.9.0 # not directly required, pinned by Snyk to avoid a vulnerability |
There was a problem hiding this comment.
Bug: PyTorch 2.x: Legacy Library Incompatibility
Requiring torch>=2.9.0 creates a version incompatibility with stable-baselines3==1.3.0. Version 1.3.0 of stable-baselines3 was released around 2021-2022 for PyTorch 1.x, while PyTorch 2.0+ introduced breaking changes. This mismatch will likely cause runtime failures when stable-baselines3 1.3.0 attempts to use PyTorch 2.9.0 APIs that have changed or been removed since version 1.13.1.
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.
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
stable_baselines_3/requirements.txtImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.
Note
Pins
torch>=2.9.0instable_baselines_3/requirements.txtto mitigate a security issue.torch>=2.9.0instable_baselines_3/requirements.txtto address a vulnerability.Written by Cursor Bugbot for commit 90bf2f4. This will update automatically on new commits. Configure here.