Skip to content

[Snyk] Security upgrade torch from 1.5.0 to 2.2.0#112

Open
LowinLi wants to merge 1 commit intomasterfrom
snyk-fix-d26d93fd4b19c05c1f09a22633b03255
Open

[Snyk] Security upgrade torch from 1.5.0 to 2.2.0#112
LowinLi wants to merge 1 commit intomasterfrom
snyk-fix-d26d93fd4b19c05c1f09a22633b03255

Conversation

@LowinLi
Copy link
Copy Markdown
Owner

@LowinLi LowinLi commented Dec 24, 2025

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.

Snyk changed the following file(s):

  • requirements-web.txt

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the affected dependencies could be upgraded.

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

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-TORCH-14534878
Copilot AI review requested due to automatic review settings December 24, 2025 18:56
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
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.

3 participants