Skip to content

[Snyk] Security upgrade fastapi from 0.103.2 to 0.109.1#41

Open
AdamOswald wants to merge 1 commit intomainfrom
snyk-fix-d4843320b3871bc81c28a99b751660b3
Open

[Snyk] Security upgrade fastapi from 0.103.2 to 0.109.1#41
AdamOswald wants to merge 1 commit intomainfrom
snyk-fix-d4843320b3871bc81c28a99b751660b3

Conversation

@AdamOswald
Copy link
Collaborator

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.

Changes included in this PR

  • Changes to the following files to upgrade the vulnerable dependencies to a fixed version:
    • requirements.txt
⚠️ Warning
transformers 4.30.2 has requirement tokenizers!=0.11.3,<0.14,>=0.11.1, but you have tokenizers 0.15.1.
torch 1.13.1 requires nvidia-cublas-cu11, which is not installed.
torch 1.13.1 requires nvidia-cuda-runtime-cu11, which is not installed.
torch 1.13.1 requires nvidia-cudnn-cu11, which is not installed.
torch 1.13.1 requires nvidia-cuda-nvrtc-cu11, which is not installed.
tensorflow-hub 0.16.1 requires tf-keras, which is not installed.
tensorboard 2.11.2 requires werkzeug, which is not installed.
tensorboard 2.11.2 has requirement protobuf<4,>=3.9.2, but you have protobuf 4.24.4.
tensorboard 2.11.2 has requirement setuptools>=41.0.0, but you have setuptools 39.0.1.
streamlit 1.23.1 requires validators, which is not installed.
scikit-learn 1.0.2 requires scipy, which is not installed.
python-igraph 0.11.3 has requirement igraph==0.11.3, but you have igraph 0.10.8.
powerlaw 1.5 requires scipy, which is not installed.
pipenv 2023.10.3 has requirement setuptools>=67, but you have setuptools 39.0.1.
paddlenlp 2.7.2 requires fastapi, which is not installed.
paddlenlp 2.7.2 requires seqeval, which is not installed.
paddlenlp 2.7.2 has requirement multiprocess<=0.70.12.2, but you have multiprocess 0.70.15.
paddlenlp 2.7.2 has requirement dill<0.3.5, but you have dill 0.3.7.
paddle2onnx 0.9.5 has requirement onnx<=1.9.0, but you have onnx 1.14.1.
onnxruntime 1.14.1 requires sympy, which is not installed.
onnxruntime 1.14.1 has requirement numpy>=1.21.6, but you have numpy 1.21.3.
onnxruntime-gpu 1.14.1 requires sympy, which is not installed.
onnxruntime-gpu 1.14.1 has requirement numpy>=1.21.6, but you have numpy 1.21.3.
lpips 0.1.4 requires scipy, which is not installed.
gradio 3.34.0 requires fastapi, which is not installed.
Flask 2.2.5 requires Werkzeug, which is not installed.
filterpy 1.4.5 requires scipy, which is not installed.
facexlib 0.3.0 requires scipy, which is not installed.
datasets 2.13.2 has requirement dill<0.3.7,>=0.3.0, but you have dill 0.3.7.
botocore 1.33.13 has requirement urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.0.7.

Vulnerabilities that will be fixed

By pinning:
Severity Priority Score (*) Issue Upgrade Breaking Change Exploit Maturity
high severity 768/1000
Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 7.5
Regular Expression Denial of Service (ReDoS)
SNYK-PYTHON-FASTAPI-6228055
fastapi:
0.103.2 -> 0.109.1
No Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

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.

Check the changes in this PR to ensure they won't cause issues with your project.


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

🛠 Adjust project settings

📚 Read more about Snyk's upgrade and patch logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)

The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-FASTAPI-6228055
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

PR Type: Enhancement

PR Summary: This pull request addresses a critical security vulnerability by upgrading FastAPI from version 0.103.2 to 0.109.1. The upgrade mitigates the risk associated with a Regular Expression Denial of Service (ReDoS) vulnerability, enhancing the security posture of the project. It is part of an automated process initiated by Snyk to maintain the health and security of the project's dependencies.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
📝 Complexity: the changes are too large or complex for Sourcery to approve.
  • Unsupported files: the diff contains files that Sourcery does not currently support during reviews.

General suggestions:

  • Ensure that the upgrade does not introduce compatibility issues with other dependencies, especially given the warnings about version conflicts with other packages.
  • Consider reviewing and updating other dependencies that have known vulnerabilities or are out of date to further improve the project's security.
  • After merging this PR, it might be beneficial to perform a thorough testing of the application to verify that the FastAPI upgrade does not affect the application's functionality or performance.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

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