Skip to content

Commit 6d9b96f

Browse files
committed
JS: Dont use getALocalSource() when marking Vue template sinks
1 parent 472b41f commit 6d9b96f

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/src/semmle/javascript/security/dataflow

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/security/dataflow/Xss.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ module DomBasedXss {
331331
* A write to the `template` option of a Vue instance, viewed as an XSS sink.
332332
*/
333333
class VueTemplateSink extends DomBasedXss::Sink {
334-
VueTemplateSink() { this = any(Vue::Instance i).getTemplate() }
334+
VueTemplateSink() { this = any(Vue::Instance i).getOption("template") }
335335
}
336336

337337
/**

0 commit comments

Comments
 (0)