scalyr / scalyr-agent-2

The source code for Scalyr Agent 2, the daemon process Scalyr customers run on their servers to collect metrics and logs.
Apache License 2.0
70 stars 60 forks source link

[Snyk] Fix for 3 vulnerabilities #1252

Closed jmakar-s1 closed 3 months ago

jmakar-s1 commented 5 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: - lint-requirements.txt #### Vulnerabilities that will be fixed ##### By pinning: Severity | Priority Score (*) | Issue | Upgrade | Breaking Change | Exploit Maturity :-------------------------:|-------------------------|:-------------------------|:-------------------------|:-------------------------|:------------------------- ![high severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/h.png "high severity") | **574/1000**
**Why?** Has a fix available, CVSS 7.2 | SQL Injection
[SNYK-PYTHON-BANDIT-6241859](https://snyk.io/vuln/SNYK-PYTHON-BANDIT-6241859) | `bandit:`
`1.6.3 -> 1.7.7`
| No | No Known Exploit ![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-BLACK-6256273](https://snyk.io/vuln/SNYK-PYTHON-BLACK-6256273) | `black:`
`22.6.0 -> 24.3.0`
| 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) | `setuptools:`
`40.5.0 -> 65.5.1`
| 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/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?utm_source=github&utm_medium=referral&page=fix-pr) πŸ›  [Adjust project settings](https://app.snyk.io/org/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?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":"758bca7e-f7b9-4777-b126-66244a49ce1e","prPublicId":"758bca7e-f7b9-4777-b126-66244a49ce1e","dependencies":[{"name":"bandit","from":"1.6.3","to":"1.7.7"},{"name":"black","from":"22.6.0","to":"24.3.0"},{"name":"setuptools","from":"40.5.0","to":"65.5.1"}],"packageManager":"pip","projectPublicId":"e975ae36-330c-4b3d-a18e-8ac993e09f2a","projectUrl":"https://app.snyk.io/org/data_platformengineering/project/e975ae36-330c-4b3d-a18e-8ac993e09f2a?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-PYTHON-BANDIT-6241859","SNYK-PYTHON-BLACK-6256273","SNYK-PYTHON-SETUPTOOLS-3180412"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["priorityScore"],"priorityScoreList":[574,658,509],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** πŸ¦‰ [SQL Injection](https://learn.snyk.io/lesson/sql-injection/?loc=fix-pr) πŸ¦‰ [Regular Expression Denial of Service (ReDoS)](https://learn.snyk.io/lesson/redos/?loc=fix-pr)
github-actions[bot] commented 5 months ago

Test Results

βŸβ€„β€ˆβŸβ€„20 files  Β±0β€‚β€ƒβŸβ€„β€ˆβŸβ€„20 suites  Β±0   32m 31s :stopwatch: +22s 1β€ˆ486 tests Β±0  1β€ˆ466 :heavy_check_mark: Β±0β€‚β€ƒβŸβ€„20 :zzz: Β±0  0 :x: Β±0  7β€ˆ101 runs  Β±0  6β€ˆ876 :heavy_check_mark: Β±0  225 :zzz: Β±0  0 :x: Β±0 

Results for commit e14199ff. ± Comparison against base commit 72a06bc4.

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 81.66%. Comparing base (72a06bc) to head (e14199f).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1252/graphs/tree.svg?width=650&height=150&src=pr&token=KrvyP8n7be&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr)](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1252?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr) ```diff @@ Coverage Diff @@ ## master #1252 +/- ## ========================================== - Coverage 81.67% 81.66% -0.01% ========================================== Files 176 176 Lines 42965 42965 Branches 4782 4782 ========================================== - Hits 35091 35086 -5 Misses 6641 6641 - Partials 1233 1238 +5 ``` [see 3 files with indirect coverage changes](https://app.codecov.io/gh/scalyr/scalyr-agent-2/pull/1252/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scalyr)