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