Skip to content

Conversation

@snyk-io
Copy link

@snyk-io snyk-io bot commented Jan 22, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements.txt
⚠️ Warning
tyro 0.9.17 requires backports-cached-property, which is not installed.
trl 0.9.4 requires accelerate, which is not installed.
trl 0.9.4 requires torch, which is not installed.
trl 0.9.4 requires transformers, which is not installed.
pyzstd 0.18.0 has requirement typing-extensions>=4.13.2, but you have typing-extensions 4.7.1.
py7zr 0.21.0 requires pyppmd, which is not installed.
py7zr 0.21.0 requires inflate64, which is not installed.
invisible-watermark 0.2.0 requires torch, which is not installed.
datasets 2.13.2 has requirement dill<0.3.7,>=0.3.0, but you have dill 0.3.7.

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:

🦉 Buffer Overflow
🦉 Directory Traversal


EntelligenceAI PR Summary

Security update pinning indirect dependencies to address vulnerabilities identified by Snyk.

  • Pinned torch to version 2.10.0 or higher
  • Pinned wheel to version 0.46.2 or higher
  • Both dependencies are transitive (indirect) requirements being explicitly constrained for security
  • Added trailing newline to requirements.txt for standard formatting compliance

@codesandbox
Copy link

codesandbox bot commented Jan 22, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

@entelligence-ai-pr-reviews entelligence-ai-pr-reviews bot left a comment

Choose a reason for hiding this comment

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

Walkthrough

This PR addresses security vulnerabilities identified by Snyk by pinning two indirect dependencies to specific minimum versions. The torch library is pinned to version 2.10.0 or higher, and the wheel package is pinned to version 0.46.2 or higher. These are transitive dependencies being explicitly constrained for security purposes rather than direct project requirements. The change also includes a minor formatting improvement by adding a newline at the end of the requirements file to comply with standard file formatting conventions.

Changes

File(s) Summary
requirements.txt Pinned torch>=2.10.0 and wheel>=0.46.2 as indirect dependencies to address Snyk-identified security vulnerabilities; added trailing newline for proper file formatting.

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    participant Dev as Developer
    participant Snyk as Snyk Security Scanner
    participant Deps as Dependency Manager
    participant Repo as Repository

    Dev->>Snyk: Run security scan
    Snyk->>Snyk: Detect vulnerabilities in torch & wheel
    Snyk-->>Dev: Report vulnerabilities
    Dev->>Deps: Update requirements.txt
    Note over Deps: Pin torch>=2.10.0<br/>Pin wheel>=0.46.2
    Dev->>Repo: Commit dependency updates
    Repo-->>Dev: Changes recorded
Loading

▶️AI Code Reviews for VS Code, Cursor, Windsurf
Install the extension

Note for Windsurf Please change the default marketplace provider to the following in the windsurf settings:

Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery

Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items

Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !

Also you can trigger various commands with the bot by doing
@entelligenceai command

The current supported commands are

  1. config - shows the current config
  2. retrigger_review - retriggers the review

More commands to be added soon.

Comment on lines 51 to 56
timm==1.0.7
torchmetrics==1.4.0
pycocotools==2.0.7
sentence-transformers==3.0.1 No newline at end of file
sentence-transformers==3.0.1
torch>=2.10.0 # not directly required, pinned by Snyk to avoid a vulnerability
wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability No newline at end of file

Choose a reason for hiding this comment

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

Correctness: Installation will fail: torch>=2.10.0 does not exist (latest is ~2.3.x). Replace with a real, compatible version like torch>=2.0.1,<2.4.0 after verifying the actual Snyk CVE.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

File: requirements.txt, Lines 54-55

Problem: The dependency `torch>=2.10.0` specifies a non-existent PyTorch version, causing installation failures and conflicts with other ML libraries.

Fix Instructions:
1. Identify the actual Snyk vulnerability CVE for torch
2. Determine the minimum patched torch version that addresses the vulnerability
3. Replace `torch>=2.10.0` with a realistic version constraint (e.g., `torch>=2.0.1,<2.4.0`)
4. Verify compatibility with sentence-transformers==3.0.1, torchmetrics==1.4.0, and other torch-dependent packages
5. Test pip install with the updated requirements.txt to ensure no conflicts
✨ Committable Code Suggestion

💡 This is a one-click fix! Click "Commit suggestion" to apply this change directly to your branch.

Suggested change
timm==1.0.7
torchmetrics==1.4.0
pycocotools==2.0.7
sentence-transformers==3.0.1
\ No newline at end of file
sentence-transformers==3.0.1
torch>=2.10.0 # not directly required, pinned by Snyk to avoid a vulnerability
wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability
pyyaml==6.0.1
timm==1.0.7
torchmetrics==1.4.0
pycocotools==2.0.7
sentence-transformers==3.0.1
torch>=2.0.1,<2.4.0 # not directly required, pinned by Snyk to avoid a vulnerability
wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability

@snyk-io
Copy link
Author

snyk-io bot commented Jan 22, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

0 participants