Skip to content

[Snyk] Security upgrade requests from 2.26.0 to 2.33.0#230

Open
asabushaban wants to merge 2 commits intomainfrom
snyk-fix-849b33467a44d11fe41ba03acfb97601
Open

[Snyk] Security upgrade requests from 2.26.0 to 2.33.0#230
asabushaban wants to merge 2 commits intomainfrom
snyk-fix-849b33467a44d11fe41ba03acfb97601

Conversation

@asabushaban
Copy link
Copy Markdown
Collaborator

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

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

🦉 Insecure Temporary File

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-REQUESTS-15763443
@asabushaban
Copy link
Copy Markdown
Collaborator Author

Merge Risk: High

This upgrade of requests from version 2.26.0 to 2.33.0 is assessed as high risk because it includes a breaking API change for users with custom HTTPAdapter subclasses.

Key Changes:

  • Breaking API Change: In version 2.32.2, the internal method _get_connection was replaced with a new public API, get_connection_with_tls_context. Code that uses custom HTTPAdapter classes and overrides the old method will break and must be migrated to the new API. [4, 8]
  • Python Version Support Dropped: Support for Python 3.7 and 3.8 has been removed across these versions. [1, 4]
  • Dependency Changes: Version 2.30.0 introduced support for urllib3 v2.0. The release notes warn that this may introduce minor breaking changes and advise careful testing. [2]
  • Packaging Modernization: Starting with version 2.33.0, the package uses a modern build system (hatchling). This is unlikely to affect most users, but very old packaging tools might have issues. [1]

Recommendation: Before merging, developers must verify if the project uses custom HTTPAdapter classes and update them to use the new get_connection_with_tls_context API if necessary. Additionally, ensure your environment runs on a supported Python version (3.9+).

Source: GitHub Release History

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

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-REQUESTS-15763443
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