commander-framework / commander

(Alpha) API microservice that is the backbone of the Commander endpoint agent framework
GNU Affero General Public License v3.0
2 stars 1 forks source link

[Snyk] Fix for 7 vulnerabilities #23

Open lawndoc opened 4 months ago

lawndoc commented 4 months 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: - Commander/requirements.txt
⚠️ Warning ``` Flask 2.2.5 requires Werkzeug, which is not installed. Flask-JWT-Extended 4.3.1 requires Werkzeug, which is not installed. ```
#### Vulnerabilities that will be fixed ##### By pinning: Severity | Priority Score (\*) | Issue | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:------------------------- ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png 'high severity') | **589/1000**
**Why?** Has a fix available, CVSS 7.5 | Information Exposure
[SNYK-PYTHON-FLASK-5490129](https://snyk.io/vuln/SNYK-PYTHON-FLASK-5490129) | No | No Known Exploit ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png 'high severity') | **696/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 7.5 | HTTP Request Smuggling
[SNYK-PYTHON-GUNICORN-6615672](https://snyk.io/vuln/SNYK-PYTHON-GUNICORN-6615672) | No | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png 'medium severity') | **581/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 5.2 | Out-of-bounds Read
[SNYK-PYTHON-PYMONGO-6370597](https://snyk.io/vuln/SNYK-PYTHON-PYMONGO-6370597) | No | Proof of Concept ![low severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/l.png 'low severity') | **506/1000**
**Why?** Proof of Concept exploit, Has a fix available, CVSS 3.7 | Exposure of Data Element to Wrong Session
[SNYK-PYTHON-REDIS-5291195](https://snyk.io/vuln/SNYK-PYTHON-REDIS-5291195) | No | Proof of Concept ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png 'medium severity') | **509/1000**
**Why?** Has a fix available, CVSS 5.9 | Regular Expression Denial of Service (ReDoS)
[SNYK-PYTHON-SETUPTOOLS-3180412](https://snyk.io/vuln/SNYK-PYTHON-SETUPTOOLS-3180412) | No | No Known Exploit ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png 'medium severity') | **539/1000**
**Why?** Has a fix available, CVSS 6.5 | Inefficient Algorithmic Complexity
[SNYK-PYTHON-WERKZEUG-6035177](https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-6035177) | No | No Known Exploit ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png 'high severity') | **661/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 7.5 | Remote Code Execution (RCE)
[SNYK-PYTHON-WERKZEUG-6808933](https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-6808933) | No | No Known Exploit (\*) 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/lawndoc/project/3006498d-f740-4575-90b2-076307b088f5?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/lawndoc/project/3006498d-f740-4575-90b2-076307b088f5?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:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"flask","from":"2.0.3","to":"2.2.5"},{"name":"gunicorn","from":"20.1.0","to":"22.0.0"},{"name":"pymongo","from":"4.1.1","to":"4.6.3"},{"name":"redis","from":"4.3.1","to":"4.3.6"},{"name":"setuptools","from":"40.5.0","to":"65.5.1"},{"name":"werkzeug","from":"2.2.3","to":"3.0.3"}],"env":"prod","issuesToFix":[{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-FLASK-5490129","priority_score":589,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Information Exposure"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-FLASK-5490129","priority_score":589,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Information Exposure"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-FLASK-5490129","priority_score":589,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Information Exposure"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-GUNICORN-6615672","priority_score":696,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"HTTP Request Smuggling"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-PYMONGO-6370597","priority_score":581,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"5.2","score":260},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Out-of-bounds Read"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-PYMONGO-6370597","priority_score":581,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"5.2","score":260},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Out-of-bounds Read"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-REDIS-5291195","priority_score":506,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"3.7","score":185},{"type":"scoreVersion","label":"v1","score":1}],"severity":"low","title":"Exposure of Data Element to Wrong Session"},{"exploit_maturity":"Proof of Concept","id":"SNYK-PYTHON-REDIS-5291195","priority_score":506,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"3.7","score":185},{"type":"scoreVersion","label":"v1","score":1}],"severity":"low","title":"Exposure of Data Element to Wrong Session"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-SETUPTOOLS-3180412","priority_score":509,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"5.9","score":295},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Regular Expression Denial of Service (ReDoS)"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6035177","priority_score":539,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.5","score":325},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Inefficient Algorithmic Complexity"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6808933","priority_score":661,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Remote Code Execution (RCE)"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6035177","priority_score":539,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.5","score":325},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Inefficient Algorithmic Complexity"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6808933","priority_score":661,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Remote Code Execution (RCE)"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6035177","priority_score":539,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.5","score":325},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Inefficient Algorithmic Complexity"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6808933","priority_score":661,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Remote Code Execution (RCE)"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6035177","priority_score":539,"priority_score_factors":[{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.5","score":325},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Inefficient Algorithmic Complexity"},{"exploit_maturity":"No Known Exploit","id":"SNYK-PYTHON-WERKZEUG-6808933","priority_score":661,"priority_score_factors":[{"type":"freshness","label":true,"score":71},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"7.5","score":375},{"type":"scoreVersion","label":"v1","score":1}],"severity":"high","title":"Remote Code Execution (RCE)"}],"prId":"7e25165f-a1f3-41ce-94f3-3ba5cad2b921","prPublicId":"7e25165f-a1f3-41ce-94f3-3ba5cad2b921","packageManager":"pip","priorityScoreList":[589,696,581,506,509,539,661],"projectPublicId":"3006498d-f740-4575-90b2-076307b088f5","projectUrl":"https://app.snyk.io/org/lawndoc/project/3006498d-f740-4575-90b2-076307b088f5?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["pr-warning-shown","priorityScore"],"type":"auto","upgrade":[],"vulns":["SNYK-PYTHON-FLASK-5490129","SNYK-PYTHON-GUNICORN-6615672","SNYK-PYTHON-PYMONGO-6370597","SNYK-PYTHON-REDIS-5291195","SNYK-PYTHON-SETUPTOOLS-3180412","SNYK-PYTHON-WERKZEUG-6035177","SNYK-PYTHON-WERKZEUG-6808933"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}' --- **Note:** _This is a default PR template raised by Snyk. Find out more about how you can customise Snyk PRs in our [documentation.](https://docs.snyk.io/scan-using-snyk/snyk-open-source/automatic-and-manual-prs-with-snyk-open-source/customize-pr-templates-closed-beta)_ **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Regular Expression Denial of Service (ReDoS)](https://learn.snyk.io/lesson/redos/?loc=fix-pr) 🦉 [Remote Code Execution (RCE)](https://learn.snyk.io/lesson/malicious-code-injection/?loc=fix-pr)
codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.19%. Comparing base (153ef43) to head (8f86977).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #23 +/- ## ========================================== + Coverage 87.98% 88.19% +0.21% ========================================== Files 8 10 +2 Lines 724 737 +13 ========================================== + Hits 637 650 +13 Misses 87 87 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.