[Snyk] Security upgrade cryptography from 2.1.4 to 42.0.0 #10

Open
import_user_oitsjustjose_95mQ wants to merge 1 commit from snyk-fix-37f4b67bf741328e33529ca3bc384c93 into main
import_user_oitsjustjose_95mQ commented 2024-01-26 22:10:07 +00:00 (Migrated from git.oitsjustjose.com)

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
platformdirs 4.0.0 has requirement typing-extensions>=4.7.1; python_version < "3.8", but you have typing-extensions 3.7.4.3.
virtualenv 20.25.0 has requirement distlib<1,>=0.3.7, but you have distlib 0.3.1.
virtualenv 20.25.0 has requirement filelock<4,>=3.12.2, but you have filelock 3.0.12.
virtualenv 20.25.0 has requirement importlib-metadata>=6.6; python_version < "3.8", but you have importlib-metadata 2.0.0.

Vulnerabilities that will be fixed

By pinning:
Severity Priority Score (*) Issue Upgrade Breaking Change Exploit Maturity
medium severity 479/1000
Why? Has a fix available, CVSS 5.3
Denial of Service (DoS)
SNYK-PYTHON-CRYPTOGRAPHY-6050294
cryptography:
2.1.4 -> 42.0.0
No No Known Exploit
medium severity 616/1000
Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Information Exposure
SNYK-PYTHON-CRYPTOGRAPHY-6126975
cryptography:
2.1.4 -> 42.0.0
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:

🦉 Denial of Service (DoS)

<p>This PR was automatically created by Snyk using the credentials of a real user.</p><br /><h3>Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.</h3> #### Changes included in this PR - Changes to the following files to upgrade the vulnerable dependencies to a fixed version: - requirements.txt <details> <summary>⚠️ <b>Warning</b></summary> ``` platformdirs 4.0.0 has requirement typing-extensions>=4.7.1; python_version < "3.8", but you have typing-extensions 3.7.4.3. virtualenv 20.25.0 has requirement distlib<1,>=0.3.7, but you have distlib 0.3.1. virtualenv 20.25.0 has requirement filelock<4,>=3.12.2, but you have filelock 3.0.12. virtualenv 20.25.0 has requirement importlib-metadata>=6.6; python_version < "3.8", but you have importlib-metadata 2.0.0. ``` </details> #### Vulnerabilities that will be fixed ##### By pinning: Severity | Priority Score (*) | Issue | Upgrade | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:-------------------------|:------------------------- ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **479/1000** <br/> **Why?** Has a fix available, CVSS 5.3 | Denial of Service (DoS) <br/>[SNYK-PYTHON-CRYPTOGRAPHY-6050294](https://snyk.io/vuln/SNYK-PYTHON-CRYPTOGRAPHY-6050294) | `cryptography:` <br> `2.1.4 -> 42.0.0` <br> | No | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | **616/1000** <br/> **Why?** Proof of Concept exploit, Has a fix available, CVSS 5.9 | Information Exposure <br/>[SNYK-PYTHON-CRYPTOGRAPHY-6126975](https://snyk.io/vuln/SNYK-PYTHON-CRYPTOGRAPHY-6126975) | `cryptography:` <br> `2.1.4 -> 42.0.0` <br> | 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: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI2Y2I2M2U3OS0wYzFjLTQ5ZGYtYWIyNS01ZTRmNzQ0NjFjYmUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjZjYjYzZTc5LTBjMWMtNDlkZi1hYjI1LTVlNGY3NDQ2MWNiZSJ9fQ==" width="0" height="0"/> 🧐 [View latest project report](https://app.snyk.io/org/oitsjustjose/project/f8f1c246-82e4-40b3-a0b6-80f8e4f30634?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/oitsjustjose/project/f8f1c246-82e4-40b3-a0b6-80f8e4f30634?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;fix-pr/settings) 📚 [Read more about Snyk's upgrade and patch logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) [//]: # (snyk:metadata:{"prId":"6cb63e79-0c1c-49df-ab25-5e4f74461cbe","prPublicId":"6cb63e79-0c1c-49df-ab25-5e4f74461cbe","dependencies":[{"name":"cryptography","from":"2.1.4","to":"42.0.0"}],"packageManager":"pip","projectPublicId":"f8f1c246-82e4-40b3-a0b6-80f8e4f30634","projectUrl":"https://app.snyk.io/org/oitsjustjose/project/f8f1c246-82e4-40b3-a0b6-80f8e4f30634?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-PYTHON-CRYPTOGRAPHY-6050294","SNYK-PYTHON-CRYPTOGRAPHY-6126975"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"priorityScoreList":[479,616],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Denial of Service (DoS)](https://learn.snyk.io/lesson/redos/?loc&#x3D;fix-pr)
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin snyk-fix-37f4b67bf741328e33529ca3bc384c93:snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch snyk-fix-37f4b67bf741328e33529ca3bc384c93

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch snyk-fix-37f4b67bf741328e33529ca3bc384c93
git rebase main
git switch main
git merge --ff-only snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch snyk-fix-37f4b67bf741328e33529ca3bc384c93
git rebase main
git switch main
git merge --no-ff snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch main
git merge --squash snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch main
git merge --ff-only snyk-fix-37f4b67bf741328e33529ca3bc384c93
git switch main
git merge snyk-fix-37f4b67bf741328e33529ca3bc384c93
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
oitsjustjose/DMSM!10
No description provided.