[Snyk] Security upgrade torch from 1.13.1 to 2.2.0#79
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-TORCH-14534878
There was a problem hiding this comment.
Pull request overview
This PR addresses a security vulnerability by upgrading the PyTorch dependency from 1.10.0 to 2.2.0+cpu in response to Snyk security advisory SNYK-PYTHON-TORCH-14534878. The upgrade aims to fix an Out-of-bounds Read vulnerability.
Key Changes:
- Upgrades torch from 1.10.0 to 2.2.0 with CPU-only variant (+cpu suffix)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| transformers==4.22.2 | ||
| diffusers==0.4.0 | ||
| torch==1.10.0+cpu No newline at end of file | ||
| torch==2.2.0+cpu No newline at end of file |
There was a problem hiding this comment.
The PR title and description indicate upgrading from torch 1.13.1 to 2.2.0, but the actual diff shows the version in the file is 1.10.0 (not 1.13.1). This discrepancy suggests either the PR metadata is incorrect, or the vulnerability scan was based on stale information. Please verify which version is actually being upgraded from and update the PR description accordingly.
| transformers==4.22.2 | ||
| diffusers==0.4.0 | ||
| torch==1.10.0+cpu No newline at end of file | ||
| torch==2.2.0+cpu No newline at end of file |
There was a problem hiding this comment.
Upgrading torch from 1.10.0 to 2.2.0 is a major version jump that may introduce breaking changes. The current diffusers version (0.4.0) is quite old and may not be compatible with torch 2.2.0. Similarly, transformers 4.22.2 is from 2022. Consider testing this upgrade thoroughly, and you may need to upgrade diffusers and transformers to versions that officially support torch 2.x. Check the diffusers and transformers documentation for their torch 2.x compatibility requirements.
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
docker/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:
🦉 Out-of-bounds Read