Skip to content

[Snyk] Security upgrade aiohttp from 3.8.6 to 3.14.4 - #27

Open
benjaminhuo wants to merge 1 commit into
mainfrom
snyk-fix-39b8574b90518b78194208235e9026ac
Open

benjaminhuo wants to merge 1 commit into
mainfrom
snyk-fix-39b8574b90518b78194208235e9026ac

Conversation

@benjaminhuo

Copy link
Copy Markdown
Member

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

  • examples/openfunction_dapr_trigger/caller/requirements.txt
⚠️ Warning
dapr 1.10.0 requires aiohttp, which is not installed.

Breaking Change Risk

Merge Risk: Medium

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

…duce vulnerabilities

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-AIOHTTP-21248798
@benjaminhuo

Copy link
Copy Markdown
Member Author

Merge Risk: Medium

The upgrade from aiohttp 3.8.6 to a later 3.x version introduces several breaking changes and deprecations. The target version 3.14.4 appears to be incorrect, as the latest stable series is 3.9.x. Analysis is based on changes up to the 3.9 series.

Key Changes:

  • Python Version Support: Support for Python 3.7 was dropped in version 3.9.0. This upgrade requires your environment to be running Python 3.8 or newer.
  • API Behavioral Changes:
    • In v3.9.0, web.FileField and MultipartReader.next() now return None when exhausted, instead of raising StopAsyncIteration. This can break loops that are not adapted to this change.
    • The ClientResponseError.history attribute is now a tuple of ClientResponse objects, removing the previously included URL.
    • A security fix in a later version made the internal decode() method asynchronous to prevent decompression bomb attacks. A new synchronous decode_iter() method was added for non-blocking decompression.

Deprecations:

  • The loop parameter has been deprecated throughout the library in preparation for version 4.0.
  • Registering synchronous web handlers is deprecated and will be removed in version 4.0.

Recommendation:
Verify that your environment uses Python 3.8+. Review any code that iterates over MultipartReader or uses ClientResponseError.history to ensure compatibility with the new behavior. It is critical to identify the correct target version and review the complete changelog for all changes between 3.8.6 and your final version.

Source: aiohttp Changelog

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

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants