diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache
index 533ccb9a5694..7a3ff0b22115 100644
--- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-mvc/pom.mustache
@@ -202,7 +202,6 @@
${jackson-threetenbp-version}
{{/threetenbp}}
-
junit
junit
@@ -238,6 +237,6 @@
{{#useBeanValidation}}
1.1.0.Final
{{/useBeanValidation}}
- 4.3.9.RELEASE
+ 4.3.20.RELEASE
diff --git a/samples/server/petstore/spring-mvc-j8-async/pom.xml b/samples/server/petstore/spring-mvc-j8-async/pom.xml
index 9a5afa5b5fd8..8860dbb70da5 100644
--- a/samples/server/petstore/spring-mvc-j8-async/pom.xml
+++ b/samples/server/petstore/spring-mvc-j8-async/pom.xml
@@ -117,7 +117,6 @@
jackson-datatype-jsr310
${jackson-version}
-
junit
junit
@@ -149,6 +148,6 @@
2.9.5
2.8.4
1.1.0.Final
- 4.3.9.RELEASE
+ 4.3.20.RELEASE
diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml
index ea0f90c84976..007aef35494f 100644
--- a/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml
+++ b/samples/server/petstore/spring-mvc-j8-localdatetime/pom.xml
@@ -117,7 +117,6 @@
jackson-datatype-jsr310
${jackson-version}
-
junit
junit
@@ -149,6 +148,6 @@
2.9.5
2.8.4
1.1.0.Final
- 4.3.9.RELEASE
+ 4.3.20.RELEASE
diff --git a/samples/server/petstore/spring-mvc/pom.xml b/samples/server/petstore/spring-mvc/pom.xml
index 6047a98e3c7e..ce4506110d8f 100644
--- a/samples/server/petstore/spring-mvc/pom.xml
+++ b/samples/server/petstore/spring-mvc/pom.xml
@@ -117,7 +117,6 @@
jackson-datatype-threetenbp
${jackson-threetenbp-version}
-
junit
junit
@@ -149,6 +148,6 @@
2.9.5
2.8.4
1.1.0.Final
- 4.3.9.RELEASE
+ 4.3.20.RELEASE