Skip to content

[Snyk] Security upgrade urllib3 from 2.0.7 to 2.6.0 - #7

Open
noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-8bb7a6dfc0ce57ac7b36fce74aa460c6
Open

[Snyk] Security upgrade urllib3 from 2.0.7 to 2.6.0#7
noom-snyk-bot wants to merge 1 commit into
mainfrom
snyk-fix-8bb7a6dfc0ce57ac7b36fce74aa460c6

Conversation

@noom-snyk-bot

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • samples/model-builder/requirements.txt

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


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

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-14192443
@noom-snyk-bot

Copy link
Copy Markdown
Author

Merge Risk: High

This upgrade of urllib3 from version 2.0.7 to 2.6.0 introduces significant breaking changes that require developer action.

Mandatory Code Changes:

  • API Removals: Version 2.6.0 removes the deprecated HTTPResponse.getheaders() and HTTPResponse.getheader() methods. Code using these methods will fail.
    • Replace response.getheaders() with the response.headers property.
    • Replace response.getheader(name, default) with response.headers.get(name, default).

Environment Changes:

  • Python Version Support: Support for Python 3.7 was removed in version 2.1.0, and support for Python 3.8 was removed in version 2.3.0. Your environment must be running Python 3.9 or newer.

Other Notable Changes:

  • The upgrade includes several important security fixes related to resource consumption and decompression vulnerabilities.
  • If you use custom content decompressors, you must update them to align with the changed urllib3.response.ContentDecoder API in v2.6.0.

Recommendation: Before merging, audit your codebase for usage of the removed getheaders() and getheader() methods and update them to use the headers property. Ensure your production environment is running Python 3.9 or a more recent version.

Source: urllib3 Changelog

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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