Skip to content

[Snyk] Security upgrade torch from 1.13.1 to 2.9.0#164

Open
bozza-man wants to merge 1 commit intomainfrom
snyk-fix-acc5de56cf4ae3fd52fa68f8e9ef61a6
Open

[Snyk] Security upgrade torch from 1.13.1 to 2.9.0#164
bozza-man wants to merge 1 commit intomainfrom
snyk-fix-acc5de56cf4ae3fd52fa68f8e9ef61a6

Conversation

@bozza-man
Copy link
Member

@bozza-man bozza-man commented Nov 17, 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):

  • Langchain Chatbot/requirements.txt
⚠️ Warning
transformers 4.30.2 requires safetensors, which is not installed.
sentence-transformers 2.2.2 requires scipy, which is not installed.
scikit-learn 1.0.2 requires scipy, 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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.


Note

Adds a security pin for torch>=2.9.0 and ensures sentence_transformers is listed in Langchain Chatbot/requirements.txt.

  • Dependencies:
    • Update Langchain Chatbot/requirements.txt to add torch>=2.9.0 (security pin).
    • Ensure sentence_transformers remains included.

Written by Cursor Bugbot for commit c8bef82. This will update automatically on new commits. Configure here.

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052971
@coderabbitai
Copy link

coderabbitai bot commented Nov 17, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-acc5de56cf4ae3fd52fa68f8e9ef61a6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

langchain
sentence_transformers No newline at end of file
sentence_transformers
torch>=2.9.0 # not directly required, pinned by Snyk to avoid a vulnerability No newline at end of file
Copy link

Choose a reason for hiding this comment

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

Bug: False Pinning: Uncontrolled Versions Risk Stability

The comment claims the version is "pinned" but torch>=2.9.0 uses a minimum version constraint, not a pin. This allows any future version (2.10.0, 3.0.0, etc.) which may introduce breaking changes or new vulnerabilities. A true pin would use ==2.9.0 or ~=2.9.0 to restrict to compatible versions.

Fix in Cursor Fix in Web

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.

2 participants