Skip to content

Commit c2390f8

Browse files
authored
Merge pull request #133 from syntheshad/vulnerability-patch-1
fix: update json-smart dependency to use 2.5.2 if latest json-path does not use it, and filter out commons-logging's pom.xml to avoid false positive
2 parents 7f70bb6 + 90b3b82 commit c2390f8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@
101101
<version.nexus-staging-maven>1.7.0</version.nexus-staging-maven>
102102
</properties>
103103

104+
<!-- Only include if latest json-path still uses vulnerable json-smart dependency -->
105+
<dependencyManagement>
106+
<dependencies>
107+
<dependency>
108+
<groupId>net.minidev</groupId>
109+
<artifactId>json-smart</artifactId>
110+
<version>2.5.2</version>
111+
</dependency>
112+
</dependencies>
113+
</dependencyManagement>
114+
104115
<dependencies>
105116
<dependency>
106117
<groupId>com.networknt</groupId>
@@ -439,6 +450,18 @@
439450
<goals>
440451
<goal>shade</goal>
441452
</goals>
453+
<!-- AWS SDK uses commons-logging that has a vulnerable log4j dependency, but is not being used by code -->
454+
<!-- Adding this as an interim solution to avoid getting flagged when META-INF is scanned -->
455+
<configuration>
456+
<filters>
457+
<filter>
458+
<artifact>commons-logging:commons-logging</artifact>
459+
<excludes>
460+
<exclude>META-INF/maven/**</exclude>
461+
</excludes>
462+
</filter>
463+
</filters>
464+
</configuration>
442465
</execution>
443466
</executions>
444467
</plugin>

0 commit comments

Comments
 (0)