diff --git a/template/Dockerfile b/template/Dockerfile
index 1e03ba6bde830cf64daa792244efb9ed606fa991..041b84dbef216796a2e80462854dac5dc3c5ba76 100644
--- a/template/Dockerfile
+++ b/template/Dockerfile
@@ -63,12 +63,10 @@ RUN rm -rf /usr/local/tomcat/webapps/* && \\
 <% if (db == 'mysql') {
   println "# For MYSQL, download the MySQL driver version from the Maven Central repository since there's no up to "
   println "# date Debian repository for it anymore."
-  // Note: We currently cannot uprgade to 8.0.23 since we need all XWiki supported branches to have upgraded to
-  // liquibase 4.3.2 before we can upgrade, see https://jira.xwiki.org/browse/XWIKI-18515
-  println "ENV MYSQL_JDBC_VERSION=\"8.0.22\""
+  println "ENV MYSQL_JDBC_VERSION=\"8.0.28\""
   // Get the SHA256 from the JAR at https://search.maven.org/artifact/mysql/mysql-connector-java and using the
   // command line defined in build.gradle.
-  println "ENV MYSQL_JDBC_SHA256=\"5019defbd12316295e97a6e88f2a9b07f118345a4e982710bba232e499b22f4f\""
+  println "ENV MYSQL_JDBC_SHA256=\"a00ccdf537ff50e50067b989108c2235197ffb65e197149bbb669db843cd1c3e\""
   println "ENV MYSQL_JDBC_PREFIX=\"https://repo1.maven.org/maven2/mysql/mysql-connector-java/\${MYSQL_JDBC_VERSION}\""
   println "ENV MYSQL_JDBC_ARTIFACT=\"mysql-connector-java-\${MYSQL_JDBC_VERSION}.jar\""
   println "ENV MYSQL_JDBC_TARGET=\"/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/\${MYSQL_JDBC_ARTIFACT}\""