mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JS: Dont use getALocalSource() when marking Vue template sinks
This commit is contained in:
@@ -331,7 +331,7 @@ module DomBasedXss {
|
||||
* A write to the `template` option of a Vue instance, viewed as an XSS sink.
|
||||
*/
|
||||
class VueTemplateSink extends DomBasedXss::Sink {
|
||||
VueTemplateSink() { this = any(Vue::Instance i).getTemplate() }
|
||||
VueTemplateSink() { this = any(Vue::Instance i).getOption("template") }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user