We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0105b82 commit 7249d28Copy full SHA for 7249d28
javascript/ql/src/semmle/javascript/security/dataflow/Xss.qll
@@ -331,7 +331,10 @@ module DomBasedXss {
331
* A write to the `template` option of a Vue instance, viewed as an XSS sink.
332
*/
333
class VueTemplateSink extends DomBasedXss::Sink {
334
- VueTemplateSink() { this = any(Vue::Instance i).getOption("template") }
+ 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
+ }
338
}
339
340
/**
0 commit comments