We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdfdcc0 commit 8b53f8fCopy full SHA for 8b53f8f
javascript/ql/lib/semmle/javascript/frameworks/Fastify.qll
@@ -328,7 +328,11 @@ module Fastify {
328
ResponseSendArgument() {
329
this = rh.getAResponseSource().ref().getAMethodCall("send").getArgument(0)
330
or
331
- this = rh.(DataFlow::FunctionNode).getAReturn()
+ exists(RouteSetup setup |
332
+ rh = setup.getARouteHandler() and
333
+ this = rh.(DataFlow::FunctionNode).getAReturn() and
334
+ setup.getMethodName() != "addHook"
335
+ )
336
}
337
338
override RouteHandler getRouteHandler() { result = rh }
0 commit comments