Skip to content

Commit

Permalink
Produce 1.5.12 release which upgrades Xerces to 2.12.1 to eliminate
Browse files Browse the repository at this point in the history
a known CVE in that dependency, even though that CVE doesn't affect
AntiSamy's usage of Xerces.
  • Loading branch information
davewichers committed Jan 9, 2021
1 parent 65639b4 commit 8120aba
Showing 1 changed file with 43 additions and 10 deletions.
53 changes: 43 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>org.owasp.antisamy</groupId>
<artifactId>antisamy</artifactId>
<packaging>jar</packaging>
<version>1.5.11</version>
<version>1.5.12</version>

<distributionManagement>
<snapshotRepository>
Expand Down Expand Up @@ -43,9 +43,20 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.spotbugs>4.1.4</version.spotbugs>
<gpg.skip>true</gpg.skip><!-- by default skip gpg -->
<version.spotbugs.maven>4.2.0</version.spotbugs.maven>
<version.spotbugs>4.2.0</version.spotbugs>
</properties>

<profiles>
<profile>
<id>release</id>
<properties>
<gpg.skip>false</gpg.skip>
</properties>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>xml-apis</groupId>
Expand Down Expand Up @@ -89,16 +100,10 @@
</exclusion>
</exclusions>
</dependency>
<!-- Note: Xerces 2.12.0 is subject to CVE-2020-14338. However, AntiSamy does not use the feature of Xerces
subject to this vulnerability so it's not a risk for AntiSamy. We could not directly upgrade Xerces to
eliminate the CVE because the Apache Xerces project hasn't addressed it yet. There is a patched Xerces library
available from JBOSS via their Maven repo at coordinates 2.12.0.SP03 which you can use if you want but it
requires you to add their maven repo to your pom to get it. Once Apache does release a patch, we do recommend
ugprading directly and excluding the version we use here. -->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.0</version>
<version>2.12.1</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
Expand Down Expand Up @@ -138,6 +143,11 @@
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand All @@ -158,6 +168,11 @@
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down Expand Up @@ -199,6 +214,18 @@
</execution>
</executions>
</plugin>
<plugin> <!-- This plugin is disabled by default. Invoke the release profile (-Prelease) to enable it. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals><goal>sign</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
Expand Down Expand Up @@ -231,6 +258,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
Expand All @@ -256,7 +288,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${version.spotbugs}</version>
<version>${version.spotbugs.maven}</version>
<dependencies>
<!-- Overwrite dependency on SpotBugs if you want to specify the version of SpotBugs.
SpotBugs itself is frequently several versions ahead of the spotbugs-maven-plugin -->
Expand Down Expand Up @@ -318,3 +350,4 @@
</plugins>
</reporting>
</project>

0 comments on commit 8120aba

Please sign in to comment.