Skip to content

Commit

Permalink
Integrate OWASP Dependency Check into build system and bump depedenci…
Browse files Browse the repository at this point in the history
…es to avoid know vulnerabilities.
  • Loading branch information
adamreichold authored and jvanzadelhoff committed Jun 9, 2023
1 parent 1dc8f6b commit a6a8124
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
19 changes: 19 additions & 0 deletions dependency-check-suppression.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<!-- Java deserialization is not used for untrusted data, remote data is exclusively XML. //-->
<suppress>
<notes><![CDATA[
file name: spring-web-5.3.27.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.springframework/spring\-web@.*$</packageUrl>
<cve>CVE-2016-1000027</cve>
</suppress>
<!-- YAML parsing is not used for untrusted data, remote data is exclusively XML. //-->
<suppress>
<notes><![CDATA[
file name: snakeyaml-1.30.jar
]]></notes>
<packageUrl regex="true">^pkg:maven/org\.yaml/snakeyaml@.*$</packageUrl>
<cpe>cpe:/a:snakeyaml_project:snakeyaml</cpe>
</suppress>
</suppressions>
23 changes: 20 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,23 @@
<argLine>-Xms256m -Xmx256m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>8.2.1</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<suppressionFiles>
<suppressionFile>dependency-check-suppression.xml</suppressionFile>
</suppressionFiles>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
Expand Down Expand Up @@ -223,9 +240,9 @@
</pluginManagement>
</build>
<properties>
<camel.version>3.14.6</camel.version>
<spring-boot.version>2.6.11</spring-boot.version>
<log4j.version>2.19.0</log4j.version>
<camel.version>3.14.7</camel.version>
<spring-boot.version>2.7.11</spring-boot.version>
<log4j.version>2.20.0</log4j.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Expand Down

0 comments on commit a6a8124

Please sign in to comment.