-
Notifications
You must be signed in to change notification settings - Fork 121
Fix CVE-2023-45803 and CVE-2024-37891 by updating urllib3 constraint #886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CVE-2023-45803 and CVE-2024-37891 by updating urllib3 constraint #886
Conversation
- Update urllib3 from pinned version 2.0.6 to >=2.2.2,<3.0.0 - CVE-2023-45803: Fixed in urllib3 2.0.7 and 1.26.18 - CVE-2024-37891: Fixed in urllib3 2.2.2 and 1.26.19 - Add upper bound <3.0.0 to prevent breaking changes from future major versions - Tested with Python 3.9 - no dependency conflicts Co-Authored-By: Yosef Arbiv <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
👋 @devin-ai-integration[bot] |
WalkthroughThe pull request updates the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (2)
Comment |
Fix CVE-2023-45803 and CVE-2024-37891 by updating urllib3 constraint
Summary
Updated the urllib3 dependency in integration test requirements from a pinned version
==2.0.6to a minimum safe version constraint>=2.2.2,<3.0.0to address two security vulnerabilities:The previous pinned version 2.0.6 was vulnerable to both CVEs. The new constraint ensures both vulnerabilities are fixed while preventing breaking changes from future urllib3 3.x releases.
Context: urllib3 was originally pinned to 2.0.6 in PR #760 to fix CVE-2023-43804. urllib3 is not directly imported in the codebase - it's a transitive dependency of pytest-html and other testing tools.
Review & Testing Checklist for Human
<3.0.0upper bound prevents future major version breaking changes, but you may want to be more conservative (e.g.,<2.6.0) if there are concerns about urllib3 2.x stability.Test Plan
urllib3>=1.26.19,<2.0.0which also fixes both CVEs but stays on the 1.x lineNotes
Link to Devin run: https://app.devin.ai/sessions/bbcb9972001f462bb6af97635458cad3
Requested by: Yosef Arbiv (@arbiv)
Summary by CodeRabbit