From 89c40cd00d935eedc756010fa22f0e9d45b53a52 Mon Sep 17 00:00:00 2001 From: sriadapa Date: Fri, 2 May 2025 17:20:47 +0100 Subject: [PATCH] fix: Trivy Security Vulnerability issues --- mockserver-client-java/pom.xml | 6 +++ mockserver-core/pom.xml | 38 ++++++++++++++ mockserver-examples/pom.xml | 35 ++++++++++++- mockserver-integration-testing/pom.xml | 14 +++++ mockserver-netty/pom.xml | 71 +++++++++++++++++++++++++- pom.xml | 20 +++++--- 6 files changed, 174 insertions(+), 10 deletions(-) diff --git a/mockserver-client-java/pom.xml b/mockserver-client-java/pom.xml index 6f0ee8065..8046af4db 100644 --- a/mockserver-client-java/pom.xml +++ b/mockserver-client-java/pom.xml @@ -14,6 +14,11 @@ A java client for the MockServer https://www.mock-server.com + + 32.0.0-android + 31.1-jre + + @@ -34,6 +39,7 @@ com.google.guava guava + ${guava.version} diff --git a/mockserver-core/pom.xml b/mockserver-core/pom.xml index 1faf0f434..b379929bc 100644 --- a/mockserver-core/pom.xml +++ b/mockserver-core/pom.xml @@ -14,6 +14,14 @@ Functionality used by all MockServer modules for matching and expectations https://www.mock-server.com + + 4.1.118.Final + 31.1-jre + 9.37.2 + 2.14.0 + 2.4 + + @@ -38,34 +46,42 @@ io.netty netty-buffer + ${netty.version} io.netty netty-codec + ${netty.version} io.netty netty-codec-http + ${netty.version} io.netty netty-codec-http2 + ${netty.version} io.netty netty-codec-socks + ${netty.version} io.netty netty-handler + ${netty.version} io.netty netty-handler-proxy + ${netty.version} io.netty netty-transport + ${netty.version} io.netty @@ -98,21 +114,28 @@ com.nimbusds nimbus-jose-jwt + ${nimbus-jose-jwt.version} org.apache.velocity velocity-engine-scripting + ${velocity.version} org.apache.velocity velocity-engine-core + ${velocity.version} org.apache.commons commons-lang3 + + org.apache.commons + commons-io + @@ -163,12 +186,25 @@ com.jayway.jsonpath json-path + 2.9.0 + + + net.minidev + json-smart + + + + + net.minidev + json-smart + 2.5.2 io.swagger.parser.v3 swagger-parser + 2.1.12 @@ -198,6 +234,7 @@ commons-io commons-io + ${commons-io.version} org.apache.commons @@ -216,6 +253,7 @@ com.google.guava guava + ${guava.version} diff --git a/mockserver-examples/pom.xml b/mockserver-examples/pom.xml index 9b969191a..59eb4f6b0 100644 --- a/mockserver-examples/pom.xml +++ b/mockserver-examples/pom.xml @@ -21,6 +21,9 @@ 9.4.50.v20221201 1.42.3 + 4.1.118.Final + 32.0.0-android + 2.0 @@ -53,7 +56,7 @@ org.yaml snakeyaml - 1.33 + ${snakeyaml.version} @@ -159,34 +162,42 @@ io.netty netty-buffer + ${netty.version} io.netty netty-codec + ${netty.version} io.netty netty-codec-http + ${netty.version} io.netty netty-codec-socks + ${netty.version} io.netty netty-common + ${netty.version} io.netty netty-handler + ${netty.version} io.netty netty-handler-proxy + ${netty.version} io.netty netty-transport + ${netty.version} io.netty @@ -195,6 +206,7 @@ io.netty netty-resolver + ${netty.version} @@ -229,11 +241,31 @@ com.google.http-client google-http-client ${google-http-client.version} + + + com.google.j2objc + j2objc-annotations + + + commons-io + commons-io + + com.google.http-client google-http-client-jackson2 ${google-http-client.version} + + + com.google.j2objc + j2objc-annotations + + + commons-io + commons-io + + @@ -270,6 +302,7 @@ com.google.guava guava + ${guava.version} diff --git a/mockserver-integration-testing/pom.xml b/mockserver-integration-testing/pom.xml index d0eb72322..e99ea9e86 100644 --- a/mockserver-integration-testing/pom.xml +++ b/mockserver-integration-testing/pom.xml @@ -14,6 +14,12 @@ A module used to simplify integration testing of all MockServer versions by sharing commons integration testing components https://www.mock-server.com + + 4.1.118.Final + 32.0.0-android + 2.14.0 + + @@ -34,26 +40,32 @@ io.netty netty-buffer + ${netty.version} io.netty netty-codec + ${netty.version} io.netty netty-codec-http + ${netty.version} io.netty netty-common + ${netty.version} io.netty netty-handler + ${netty.version} io.netty netty-transport + ${netty.version} io.netty @@ -70,11 +82,13 @@ com.google.guava guava + ${guava.version} commons-io commons-io compile + ${commons-io.version} diff --git a/mockserver-netty/pom.xml b/mockserver-netty/pom.xml index fea035a21..986306b29 100644 --- a/mockserver-netty/pom.xml +++ b/mockserver-netty/pom.xml @@ -14,10 +14,36 @@ 2 + + 4.1.118.Final + 2.14.0 + 32.0.0-android + 2.5.2 + 2.0 + 9.37.2 + 2.10.0 - + + + sonatype-nexus-snapshots + sonatype-nexus-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + true + + + true + + + + + ${project.groupId} mockserver-client-java @@ -41,30 +67,37 @@ io.netty netty-buffer + ${netty.version} io.netty netty-codec + ${netty.version} io.netty netty-codec-http + ${netty.version} io.netty netty-codec-http2 + ${netty.version} io.netty netty-common + ${netty.version} io.netty netty-handler + ${netty.version} io.netty netty-transport + ${netty.version} io.netty @@ -75,10 +108,34 @@ commons-io commons-io + ${commons-io.version} com.google.guava guava + ${guava.version} + + + + + com.nimbusds + nimbus-jose-jwt + ${nimbus-jose-jwt.version} + + + net.minidev + json-smart + ${json-smart.version} + + + org.yaml + snakeyaml + ${snakeyaml.version} + + + org.xmlunit + xmlunit-core + ${xmlunit.version} @@ -441,6 +498,18 @@ samples/** + + org.apache.velocity:velocity-engine-core + + org/apache/velocity/util/ExceptionUtils.java + + + + commons-io:commons-io + + ** + + diff --git a/pom.xml b/pom.xml index 05d663ac9..dd9d61123 100644 --- a/pom.xml +++ b/pom.xml @@ -56,8 +56,12 @@ UTF8 2.0.6 2.14.2 - 2.3 - 4.1.89.Final + 2.4 + 4.1.118.Final + 31.1-jre + 9.37.2 + 2.14.0 + 2.0 4.4.1 1.72 @@ -284,7 +288,7 @@ com.nimbusds nimbus-jose-jwt - 9.30.2 + ${nimbus-jose-jwt.version} @@ -347,14 +351,14 @@ com.jayway.jsonpath json-path - 2.7.0 + 2.9.0 io.swagger.parser.v3 swagger-parser - 2.1.12 + 2.1.22 com.github.fge @@ -414,12 +418,12 @@ commons-io commons-io - 2.11.0 + ${commons-io.version} com.google.guava guava - 31.1-jre + ${guava.version} @@ -563,7 +567,7 @@ org.yaml snakeyaml - 1.33 + ${snakeyaml.version}