diff --git a/samples/openapi3/client/petstore/spring-cloud/pom.xml b/samples/openapi3/client/petstore/spring-cloud/pom.xml
index d657a9e588fc..b287cc6ca353 100644
--- a/samples/openapi3/client/petstore/spring-cloud/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud/pom.xml
@@ -54,7 +54,7 @@
org.springframework.security
spring-security-oauth2-client
- 5.7.8
+ 6.2.7
com.fasterxml.jackson.datatype