Skip to content

Commit 4e38d0a

Browse files
committed
Add Dependency-Check checks / reporting. Update several versions of vulernerable dependencies (none which were actually exploitable through ESAPI).
1 parent 3a5257c commit 4e38d0a

File tree

1 file changed

+34
-14
lines changed

1 file changed

+34
-14
lines changed

pom.xml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@
126126
</dependency>
127127
<dependency>
128128
<groupId>commons-beanutils</groupId>
129-
<artifactId>commons-beanutils-core</artifactId>
130-
<version>1.8.3</version>
129+
<artifactId>commons-beanutils</artifactId>
130+
<!-- We need to use 1.9.2 (or later) here to address CVE-2014-0114. -->
131+
<version>1.9.3</version>
131132
</dependency>
132133
<dependency>
133134
<groupId>junit</groupId>
@@ -150,13 +151,13 @@
150151
<dependency>
151152
<groupId>commons-fileupload</groupId>
152153
<artifactId>commons-fileupload</artifactId>
153-
<version>1.3.1</version>
154+
<version>1.3.2</version>
154155
<scope>compile</scope>
155156
</dependency>
156157
<dependency>
157158
<groupId>commons-io</groupId>
158159
<artifactId>commons-io</artifactId>
159-
<version>2.4</version>
160+
<version>2.5</version>
160161
<scope>test</scope>
161162
</dependency>
162163
<dependency>
@@ -185,12 +186,24 @@
185186
<dependency>
186187
<groupId>org.owasp.antisamy</groupId>
187188
<artifactId>antisamy</artifactId>
188-
<version>1.5.3</version>
189+
<version>1.5.5</version>
190+
</dependency>
191+
<!-- The following is only a TRANSITIVE dependency used by antisamy.
192+
Antisamy uses 2.7.0, which has unpatched vulnerability
193+
CVE-2014-0107 so we try to force it to 2.7.2 to address this
194+
as we are already using the latest version of antisamy.
195+
However, as of ESAPI 2.1.0.1 at least, ESAPI does NOT use this
196+
library directly.
197+
-->
198+
<dependency>
199+
<groupId>xalan</groupId>
200+
<artifactId>xalan</artifactId>
201+
<version>2.7.2</version>
189202
</dependency>
190203
<dependency>
191204
<groupId>org.apache.xmlgraphics</groupId>
192205
<artifactId>batik-css</artifactId>
193-
<version>1.8</version>
206+
<version>1.9</version>
194207
</dependency>
195208
<dependency>
196209
<groupId>org.mockito</groupId>
@@ -272,6 +285,21 @@
272285
<version>4.1.0</version>
273286
</plugin>
274287

288+
<plugin>
289+
<groupId>org.owasp</groupId>
290+
<artifactId>dependency-check-maven</artifactId>
291+
<version>1.4.4</version>
292+
<configuration>
293+
<failBuildOnCVSS>1</failBuildOnCVSS>
294+
</configuration>
295+
<executions>
296+
<execution>
297+
<goals>
298+
<goal>check</goal>
299+
</goals>
300+
</execution>
301+
</executions>
302+
</plugin>
275303
</plugins>
276304
</build>
277305

@@ -344,14 +372,6 @@
344372
</reportSet>
345373
</reportSets>
346374
</plugin>
347-
<plugin>
348-
<groupId>org.owasp</groupId>
349-
<artifactId>dependency-check-maven</artifactId>
350-
<version>1.3.3</version>
351-
<configuration>
352-
<externalReport>false</externalReport>
353-
</configuration>
354-
</plugin>
355375
<plugin>
356376
<groupId>org.apache.maven.plugins</groupId>
357377
<artifactId>maven-surefire-report-plugin</artifactId>

0 commit comments

Comments
 (0)