Skip to content

[Snyk] Security upgrade torch from 1.13.1 to 2.2.0#79

Open
LowinLi wants to merge 1 commit intomainfrom
snyk-fix-5c3ec40889e8061d6683b1894481b5e7
Open

[Snyk] Security upgrade torch from 1.13.1 to 2.2.0#79
LowinLi wants to merge 1 commit intomainfrom
snyk-fix-5c3ec40889e8061d6683b1894481b5e7

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):

  • docker/requirements.txt
⚠️ Warning
transformers 4.22.2 requires tokenizers, which is not installed.

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:57
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 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
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 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.

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

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.

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