[Snyk] Security upgrade torch from 1.5.0 to 2.2.0#112
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 upgrades the torch dependency from version 1.5.0 to 2.2.0 in requirements-web.txt to address a security vulnerability (SNYK-PYTHON-TORCH-14534878) related to an out-of-bounds read issue.
Key Changes:
- Updated torch version from 1.5.0 to 2.2.0 in requirements-web.txt to patch security vulnerability
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -1,4 +1,4 @@ | |||
| torch==1.5.0 | |||
| torch==2.2.0 | |||
There was a problem hiding this comment.
The security upgrade only updates torch in requirements-web.txt but leaves requirements.txt with the vulnerable version 1.5.0. This creates an inconsistency where different parts of the project may use different torch versions, and the security vulnerability remains unpatched in the main requirements file. Both requirement files should be updated to torch==2.2.0 to ensure consistent dependency resolution and complete vulnerability remediation.
Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements-web.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