diff --git a/samples/spring-data-jdbc/postgresql/pom.xml b/samples/spring-data-jdbc/postgresql/pom.xml
index a9558ba56..fb704d0ac 100644
--- a/samples/spring-data-jdbc/postgresql/pom.xml
+++ b/samples/spring-data-jdbc/postgresql/pom.xml
@@ -72,7 +72,7 @@
org.postgresql
postgresql
- 42.7.6
+ 42.7.7
diff --git a/samples/spring-data-mybatis/postgresql/pom.xml b/samples/spring-data-mybatis/postgresql/pom.xml
index f808d9a3f..2985c2c5c 100644
--- a/samples/spring-data-mybatis/postgresql/pom.xml
+++ b/samples/spring-data-mybatis/postgresql/pom.xml
@@ -75,7 +75,7 @@
org.postgresql
postgresql
- 42.7.6
+ 42.7.7
org.testcontainers