diff --git a/gwy/templates/go.mod.tmpl b/gwy/templates/go.mod.tmpl
index 0cd4a3fe..1c8bd6c0 100644
--- a/gwy/templates/go.mod.tmpl
+++ b/gwy/templates/go.mod.tmpl
@@ -4,7 +4,7 @@ go 1.17
 
 require (
 	github.com/gorilla/handlers v1.5.1
-	github.com/grpc-ecosystem/grpc-gateway v1.16.0
+	github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0
 	github.com/grpc-ecosystem/grpc-gateway/v2 v2.0.1
 	github.com/sirupsen/logrus v1.9.0
 	github.com/spf13/pflag v1.0.5