Skip to content

[Snyk] Fix for 2 vulnerabilities#85

Open
LowinLi wants to merge 1 commit intomainfrom
snyk-fix-55957a05b486e834f8c5138effbcf3d1
Open

[Snyk] Fix for 2 vulnerabilities#85
LowinLi wants to merge 1 commit intomainfrom
snyk-fix-55957a05b486e834f8c5138effbcf3d1

Conversation

@LowinLi
Copy link
Copy Markdown
Owner

@LowinLi LowinLi commented Feb 4, 2026

snyk-top-banner

Snyk has created this PR to fix 2 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.
streamlit 1.13.0 requires protobuf, which is not installed.
onnxruntime 1.12.1 requires protobuf, which is not installed.
onnx 1.12.0 requires protobuf, 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.

Copilot AI review requested due to automatic review settings February 4, 2026 14:30
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 security vulnerabilities identified by Snyk in two transitive dependencies: protobuf (upgrading from 3.20.1 to 6.33.5) and zipp (upgrading from 3.15.0 to 3.19.1). These dependencies are not directly used by the application but are required by packages like onnx, onnxruntime, streamlit, and transformers.

Changes:

  • Added explicit version constraints for protobuf (>=6.33.5) to fix vulnerability SNYK-PYTHON-PROTOBUF-15090738
  • Added explicit version constraints for zipp (>=3.19.1) to fix vulnerability SNYK-PYTHON-ZIPP-7430899

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +8 to +9
protobuf>=6.33.5 # not directly required, pinned by Snyk to avoid a vulnerability
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability No newline at end of file
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

Using ">=" for these security-pinned dependencies is inconsistent with the rest of the requirements file, where all other dependencies use exact version pinning with "==". This creates unpredictability in the build environment. Consider using "==" to pin to specific versions (e.g., "protobuf==5.28.3" and "zipp==3.19.1") to maintain consistency and ensure reproducible builds.

Suggested change
protobuf>=6.33.5 # not directly required, pinned by Snyk to avoid a vulnerability
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
protobuf==6.33.5 # not directly required, pinned by Snyk to avoid a vulnerability
zipp==3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability

Copilot uses AI. Check for mistakes.
diffusers==0.4.0
torch==1.10.0+cpu No newline at end of file
torch==1.10.0+cpu
protobuf>=6.33.5 # not directly required, pinned by Snyk to avoid a vulnerability
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The PR description shows warnings that multiple dependencies require protobuf but it's "not installed": transformers 4.22.2, streamlit 1.13.0, onnxruntime 1.12.1, and onnx 1.12.0. This suggests that upgrading protobuf to a much newer version (from 3.20.1 to 6.x/5.x) may introduce compatibility issues with these older packages. These packages were released in 2022 and likely expect protobuf 3.x. Before merging, verify that the new protobuf version is compatible with onnx==1.12.0, onnxruntime==1.12.1, streamlit==1.13.0, and transformers==4.22.2, or consider upgrading these dependencies as well.

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