Closed kwwall closed 7 months ago
I attempted to fix this:
diff --git a/pom.xml b/pom.xml
index bb77d1e9..bc6a29ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -250,6 +250,11 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
+ <!-- excluded because multiple dependencies import newer version. -->
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
@@ -281,7 +286,7 @@
-->
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
- <version>2.14.0</version>
+ <version>2.15.1</version>
</dependency>
but then when running tests we have two failures that I think are related to AntiSamy 1.7.4 rather than what I'm doing:
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] HTMLValidationRuleCleanTest.testOnfocusAfterStyleClosing:410 expected:<k[<input<</>]input/onfocus=alert(...> but was:<k[]input/onfocus=alert(...>
[ERROR] HTMLValidationRuleCleanTest.testScriptTagAfterStyleClosing:380 expected:<W[<xmp<script>alert(1)</script>]> but was:<W[alert(1)]>
[ERROR] Errors:
[ERROR] EncryptedPropertiesUtilsTest.testCreateNew:93 » UnsupportedOperation This method has been removed for security.
[ERROR] EncryptedPropertiesUtilsTest.testLoadEncryptedAndAdd:165 » UnsupportedOperation This method has been removed for security.
[ERROR] EncryptedPropertiesUtilsTest.testLoadPlaintextAndEncrypt:131 » UnsupportedOperation This method has been removed for security.
[ERROR] ReferenceEncryptedPropertiesTest.testStoreLoad:160 » UnsupportedOperation This method has been removed for security.
[INFO]
[ERROR] Tests run: 4297, Failures: 2, Errors: 4, Skipped: 0
How can I move this forward?
EDIT: I've created a PR to resolve these two failures
This was addressed by PR #833
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 `maven` dependencies of this project.
#### Changes included in this PR - Changes to the following files to upgrade the vulnerable dependencies to a fixed version: - pom.xml #### Vulnerabilities that will be fixed ##### With an upgrade: 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") | **591/1000****Why?** Recently disclosed, Has a fix available, CVSS 6.1 | Cross-site Scripting (XSS)
[SNYK-JAVA-ORGOWASPANTISAMY-6227504](https://snyk.io/vuln/SNYK-JAVA-ORGOWASPANTISAMY-6227504) | `org.owasp.antisamy:antisamy:`
`1.7.4 -> 1.7.5`
| No | No Known Exploit (*) Note that the real score may have changed since the PR was raised. 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/kwwall/project/95b3b421-3d26-4a92-bbaf-c2bc1190359c?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/kwwall/project/95b3b421-3d26-4a92-bbaf-c2bc1190359c?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":"c3f3a306-5c5b-47af-9ee4-b0d1e15dc7d3","prPublicId":"c3f3a306-5c5b-47af-9ee4-b0d1e15dc7d3","dependencies":[{"name":"org.owasp.antisamy:antisamy","from":"1.7.4","to":"1.7.5"}],"packageManager":"maven","projectPublicId":"95b3b421-3d26-4a92-bbaf-c2bc1190359c","projectUrl":"https://app.snyk.io/org/kwwall/project/95b3b421-3d26-4a92-bbaf-c2bc1190359c?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JAVA-ORGOWASPANTISAMY-6227504"],"upgrade":["SNYK-JAVA-ORGOWASPANTISAMY-6227504"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":["updated-fix-title","priorityScore"],"priorityScoreList":[591],"remediationStrategy":"vuln"}) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Cross-site Scripting (XSS)](https://learn.snyk.io/lesson/xss/?loc=fix-pr)