forked from plotly/dash
-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade urllib3 from 2.0.7 to 2.5.0 #61
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
Open
paaschdigital
wants to merge
1
commit into
dev
Choose a base branch
from
snyk-fix-f55a22197f69cdddf528dfe01095111a
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential Dependency Incompatibility - Verification Needed
Snyk's metadata for this PR (visible in the PR description's raw markdown) states this is an upgrade from
urllib3 2.0.7to2.5.0. Ifurllib3 2.0.7was indeed the version in use, yourrequestsdependency (currently unpinned in this file) should have resolved to a version compatible withurllib3 2.x(i.e.,requests >= 2.32.0).However, the Snyk PR description also prominently displays a warning:
requests 2.31.0 requires urllib3, which is not installed.Version2.31.0ofrequestsis not compatible withurllib3 2.x, as it specifically requiresurllib3 < 1.27. This information is contradictory and presents a risk.Action Required:
requestsandurllib3versions in your development and production environments.requestsis< 2.32.0(e.g., 2.31.0 as per the Snyk warning):This pin to
urllib3>=2.5.0will cause a dependency conflict and likely break your application.requeststorequests>=2.32.0and explicitly pin it inrequires-install.txt. Thisurllib3pin would then be compatible.requestscannot be upgraded, thisurllib3pin to2.5.0is incorrect. You must use aurllib3 1.xversion that fixes the Snyk vulnerabilities and is compatible with yourrequestsversion (e.g.,urllib3>=1.26.18,<1.27). You would need to verify which1.xversion is appropriate and modify this line accordingly. See the code suggestion for an example of what this line might look like in that case.requestsis already>= 2.32.0(andurllib3 2.0.7was indeed in use):This
urllib3>=2.5.0pin is likely compatible. For robustness and clarity, consider explicitly pinning yourrequestsversion (e.g.,requests>=2.32.0) inrequires-install.txtto ensure continued compatibility and prevent accidental resolution to an older, incompatiblerequestsversion in the future.Please investigate this potential discrepancy thoroughly before merging to prevent runtime failures.