glotaran / pyglotaran

A Python library for Global and Target Analysis of time-resolved spectroscopy data
GNU Lesser General Public License v3.0
54 stars 18 forks source link

[Snyk] Security upgrade pydantic from 1.10.12 to 2.4.0 #1360

Closed jsnel closed 11 months ago

jsnel commented 1 year ago

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_dev.txt
⚠️ Warning ``` tox-direct 0.4 has requirement tox<4,>=3.12, but you have tox 4.8.0. flake8 5.0.4 has requirement importlib-metadata<4.3,>=1.1.0; python_version < "3.8", but you have importlib-metadata 6.7.0. ```
#### 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") | **658/1000**
**Why?** Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3 | Regular Expression Denial of Service (ReDoS)
[SNYK-PYTHON-PYDANTIC-5907722](https://snyk.io/vuln/SNYK-PYTHON-PYDANTIC-5907722) | `pydantic:`
`1.10.12 -> 2.4.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](https://app.snyk.io/org/jsnel/project/59c5aae5-6832-43a1-b464-0ed01d9757b8?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/jsnel/project/59c5aae5-6832-43a1-b464-0ed01d9757b8?utm_source=github&utm_medium=referral&page=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":"54af6baa-ced4-435e-aa64-a285e4708a84","prPublicId":"54af6baa-ced4-435e-aa64-a285e4708a84","dependencies":[{"name":"pydantic","from":"1.10.12","to":"2.4.0"}],"packageManager":"pip","projectPublicId":"59c5aae5-6832-43a1-b464-0ed01d9757b8","projectUrl":"https://app.snyk.io/org/jsnel/project/59c5aae5-6832-43a1-b464-0ed01d9757b8?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-PYTHON-PYDANTIC-5907722"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"priorityScoreList":[658],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Regular Expression Denial of Service (ReDoS)](https://learn.snyk.io/lesson/redos/?loc=fix-pr)
github-actions[bot] commented 1 year ago

Binder :point_left: Launch a binder notebook on branch glotaran/pyglotaran/snyk-fix-61d8af5989fc0cdd08f1c9df495b514f

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

github-actions[bot] commented 1 year ago

Benchmark is done. Checkout the benchmark result page. Benchmark differences below 5% might be due to CI noise.

Benchmark diff v0.7.1 vs. main ``` All benchmarks: | Change | Before [535acaaa] | After [1712073b] | Ratio | Benchmark (Parameter) | |----------|------------------------------|---------------------|---------|-----------------------------------------| | | 218M | 218M | 1 | IntegrationTwoDatasets.peakmem_optimize | | | 1.58±0.03s | 1.59±0.06s | 1.01 | IntegrationTwoDatasets.time_optimize | ```
Benchmark diff main vs. PR ``` All benchmarks: | Change | Before [1712073b] | After [c13484c7] | Ratio | Benchmark (Parameter) | |----------|----------------------|---------------------|---------|-----------------------------------------| | | 218M | 218M | 1 | IntegrationTwoDatasets.peakmem_optimize | | | 1.59±0.06s | 1.63±0.04s | 1.02 | IntegrationTwoDatasets.time_optimize | ```
codecov[bot] commented 1 year ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

:loudspeaker: Thoughts on this report? Let us know!.