Skip to content

Commit 7249d28

Browse files
committed
JS: Add comment to VueTemplateSink class
1 parent 0105b82 commit 7249d28

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,10 @@ 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).getOption("template") }
334+
VueTemplateSink() {
335+
// Note: don't use Vue::Instance#getTemplate as it includes an unwanted getALocalSource() step
336+
this = any(Vue::Instance i).getOption("template")
337+
}
335338
}
336339

337340
/**

0 commit comments

Comments
 (0)