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