Skip to content

[Snyk] Security upgrade urllib3 from 1.26.13 to 2.6.0#1

Open
dextrorsal wants to merge 1 commit intomasterfrom
snyk-fix-a9cc1e181a091734d2768c269bdeaf6c
Open

[Snyk] Security upgrade urllib3 from 1.26.13 to 2.6.0#1
dextrorsal wants to merge 1 commit intomasterfrom
snyk-fix-a9cc1e181a091734d2768c269bdeaf6c

Conversation

@dextrorsal
Copy link
Copy Markdown
Owner

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):

  • requirements.txt
⚠️ Warning
equests 2.28.1 requires urllib3, 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:

🦉 Allocation of Resources Without Limits or Throttling

types-cachetools==4.2.10
typing_extensions==4.4.0
urllib3==1.26.13
urllib3==2.6.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: requests 2.28.1 is incompatible with urllib3 2.6.0 due to removed HTTPResponse methods, leading to AttributeError.
Severity: CRITICAL | Confidence: High

🔍 Detailed Analysis

When requests 2.28.1 attempts to make an HTTP request using urllib3 2.6.0, it will encounter an AttributeError because urllib3 2.6.0 has removed the HTTPResponse.getheader() and HTTPResponse.getheaders() methods that requests 2.28.1 expects to call internally. This will cause the application to crash at runtime whenever an HTTP request is made.

💡 Suggested Fix

Upgrade the requests library to version 2.30.0 or later to ensure compatibility with urllib3 2.6.0.

🤖 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: requirements.txt#L63

Potential issue: When `requests 2.28.1` attempts to make an HTTP request using `urllib3
2.6.0`, it will encounter an `AttributeError` because `urllib3 2.6.0` has removed the
`HTTPResponse.getheader()` and `HTTPResponse.getheaders()` methods that `requests
2.28.1` expects to call internally. This will cause the application to crash at runtime
whenever an HTTP request is made.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 6095916

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.

2 participants