Skip to content

[Snyk] Fix for 4 vulnerabilities#90

Open
wasimakh2 wants to merge 1 commit into
masterfrom
snyk-fix-c15c190308b4e24a68e7887f7499ba66
Open

[Snyk] Fix for 4 vulnerabilities#90
wasimakh2 wants to merge 1 commit into
masterfrom
snyk-fix-c15c190308b4e24a68e7887f7499ba66

Conversation

@wasimakh2

Copy link
Copy Markdown
Owner

snyk-top-banner

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

Snyk changed the following file(s):

  • requirements_tests.txt
⚠️ Warning
scikit-learn 1.0.2 requires scipy, which is not installed.
resampy 0.4.3 has requirement numba>=0.53, but you have numba 0.48.0.
rdflib 6.3.2 has requirement importlib-metadata<5.0.0,>=4.0.0; python_version >= "3.7" and python_version < "3.8", but you have importlib-metadata 6.7.0.
rdflib 6.3.2 has requirement isodate<0.7.0,>=0.6.0, but you have isodate 0.7.2.
librosa 0.7.2 requires scipy, which is not installed.
Flask 2.2.5 requires Werkzeug, 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 January 12, 2026 06:04

Copilot AI left a comment

Copy link
Copy Markdown

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 attempts to fix 4 security vulnerabilities identified by Snyk by upgrading dependencies in requirements_tests.txt. However, the automated fixes specify package versions that likely do not exist, making this PR non-functional as-is.

Changes:

  • Upgrades torch from >=1.5 to >=2.9.0 (likely non-existent version)
  • Upgrades bokeh from ==1.4.0 to ==3.8.2 (likely non-existent version)
  • Adds urllib3 constraint >=2.6.3 (likely non-existent version)
  • Adds werkzeug constraint >=3.1.5

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

Comment thread requirements_tests.txt
@@ -1,4 +1,4 @@
torch>=1.5
torch>=2.9.0

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

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

This creates an inconsistency between requirements.txt and requirements_tests.txt. The main requirements.txt specifies torch>=1.5 while this test requirements file now specifies torch>=2.9.0. This means the test environment would require a different (and potentially non-existent) version than the production environment. These version constraints should be aligned, or if tests require a newer version, this should be clearly documented and verified to be compatible with the codebase.

Suggested change
torch>=2.9.0
torch>=1.5

Copilot uses AI. Check for mistakes.
Comment thread requirements_tests.txt
inflect
pysbd
bokeh==1.4.0
bokeh==3.8.2

Copilot AI Jan 12, 2026

Copy link

Choose a reason for hiding this comment

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

This creates an inconsistency between requirements.txt and requirements_tests.txt. The main requirements.txt specifies bokeh==1.4.0 (exact version) while this test requirements file now specifies bokeh==3.8.2. This is a major version jump (1.4 to 3.8) that likely contains breaking changes. The version should be consistent across both files unless there's a specific reason for the test environment to use a different version. Additionally, bokeh 3.8.2 may not exist and should be verified.

Suggested change
bokeh==3.8.2
bokeh==1.4.0

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