fecgov / fec-cms

The content management system (CMS) for the new Federal Election Commission website.
https://www.fec.gov
Other
93 stars 38 forks source link

[Snyk] Fix for 3 vulnerabilities #6264

Closed fec-jli closed 4 months ago

fec-jli 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: - requirements.txt #### 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") | **556/1000**
**Why?** Recently disclosed, Has a fix available, CVSS 5.4 | Cross-site Scripting (XSS)
[SNYK-PYTHON-JINJA2-6809379](https://snyk.io/vuln/SNYK-PYTHON-JINJA2-6809379) | `jinja2:`
`3.1.3 -> 3.1.4`
| No | No Known Exploit ![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 ![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 | Uncontrolled Recursion
[SNYK-PYTHON-SQLPARSE-6615674](https://snyk.io/vuln/SNYK-PYTHON-SQLPARSE-6615674) | `sqlparse:`
`0.4.4 -> 0.5.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/fec-jli/project/c22d0c40-cee8-435c-b9bc-bbc5a7a8bf29?utm_source=github&utm_medium=referral&page=fix-pr) šŸ›  [Adjust project settings](https://app.snyk.io/org/fec-jli/project/c22d0c40-cee8-435c-b9bc-bbc5a7a8bf29?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":"f0912c09-c7f6-4da2-a5e2-85e2f254698c","prPublicId":"f0912c09-c7f6-4da2-a5e2-85e2f254698c","dependencies":[{"name":"jinja2","from":"3.1.3","to":"3.1.4"},{"name":"setuptools","from":"40.5.0","to":"65.5.1"},{"name":"sqlparse","from":"0.4.4","to":"0.5.0"}],"packageManager":"pip","projectPublicId":"c22d0c40-cee8-435c-b9bc-bbc5a7a8bf29","projectUrl":"https://app.snyk.io/org/fec-jli/project/c22d0c40-cee8-435c-b9bc-bbc5a7a8bf29?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-PYTHON-JINJA2-6809379","SNYK-PYTHON-SETUPTOOLS-3180412","SNYK-PYTHON-SQLPARSE-6615674"],"upgrade":[],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["priorityScore"],"priorityScoreList":[556,509,696],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** šŸ¦‰ [Cross-site Scripting (XSS)](https://learn.snyk.io/lesson/xss/?loc=fix-pr) šŸ¦‰ [Regular Expression Denial of Service (ReDoS)](https://learn.snyk.io/lesson/redos/?loc=fix-pr)
codecov[bot] commented 4 months ago

Codecov Report

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

Project coverage is 77.99%. Comparing base (cf19bed) to head (e872eb9).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #6264 +/- ## =========================================== - Coverage 78.00% 77.99% -0.02% =========================================== Files 291 291 Lines 9414 9414 Branches 681 681 =========================================== - Hits 7343 7342 -1 - Misses 2071 2072 +1 ```

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