diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index ba32ac9d3..ed1648987 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -91,7 +91,7 @@
     <dependency>
       <groupId>com.google.cloud</groupId>
       <artifactId>google-cloud-storage</artifactId>
-      <version>2.39.0</version>
+      <version>2.40.0</version>
     </dependency>
   </dependencies>
 
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index c0045060c..235f3c4c7 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -90,7 +90,7 @@
     <dependency>
       <groupId>com.google.cloud</groupId>
       <artifactId>google-cloud-storage</artifactId>
-      <version>2.39.0</version>
+      <version>2.40.0</version>
     </dependency>
   </dependencies>