diff --git a/javascript/ql/lib/semmle/javascript/frameworks/Next.qll b/javascript/ql/lib/semmle/javascript/frameworks/Next.qll index 9c661b7f91d..bd45d8c048f 100644 --- a/javascript/ql/lib/semmle/javascript/frameworks/Next.qll +++ b/javascript/ql/lib/semmle/javascript/frameworks/Next.qll @@ -310,7 +310,8 @@ module NextJS { ) | this = - mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware"]).getAFunctionValue() + mod.getAnExportedValue([any(Http::RequestMethodName m), "middleware", "proxy"]) + .getAFunctionValue() ) }