[Snyk] Security upgrade urllib3 from 2.0.7 to 2.6.3#74
[Snyk] Security upgrade urllib3 from 2.0.7 to 2.6.3#74
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-14896210
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. Comment |
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
| wandb>=0.10.31 | ||
| psutil>=5.9.0 | ||
| clearml>=1.11.1 | ||
| urllib3>=2.6.3 # not directly required, pinned by Snyk to avoid a vulnerability |
There was a problem hiding this comment.
Bug: Adding urllib3>=2.6.3 conflicts with wandb's requirement for urllib3<2, which will likely cause installation to fail.
Severity: HIGH
🔍 Detailed Analysis
The addition of urllib3>=2.6.3 to references/requirements.txt creates a dependency conflict. The same file also requires wandb>=0.10.31, which has a transitive dependency on urllib3<2. These two version constraints are mutually exclusive. When pip attempts to install dependencies from this file, it will face these incompatible requirements. This is highly likely to cause an installation failure, preventing the setup of environments for running training scripts.
💡 Suggested Fix
The dependency conflict between urllib3 and wandb needs to be resolved. Check if wandb can be upgraded to a version that supports urllib3>=2.x. If not, the urllib3 upgrade may need to be reverted to maintain compatibility. Verify the fix by running the installation in a clean environment.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: references/requirements.txt#L6
Potential issue: The addition of `urllib3>=2.6.3` to `references/requirements.txt`
creates a dependency conflict. The same file also requires `wandb>=0.10.31`, which has a
transitive dependency on `urllib3<2`. These two version constraints are mutually
exclusive. When `pip` attempts to install dependencies from this file, it will face
these incompatible requirements. This is highly likely to cause an installation failure,
preventing the setup of environments for running training scripts.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8513304

Snyk has created this PR to fix 1 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
references/requirements.txtImportant
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.