diff --git a/samples/openapi3/client/petstore/spring-cloud/pom.xml b/samples/openapi3/client/petstore/spring-cloud/pom.xml
index 18062a63aa26..b5d34706d64a 100644
--- a/samples/openapi3/client/petstore/spring-cloud/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud/pom.xml
@@ -68,7 +68,7 @@
org.springframework.security
spring-security-oauth2-client
- 5.7.8
+ 7.0.0
com.fasterxml.jackson.datatype