© 2018 shift-js.info
Tangled World of Web Technology ― Are we safe?
Injection into Directives
Examples of XSS with Vue.js
16
![]()
‣ Directives (e.g. v-on, v-show, v-if, v-for, v-bind, ...) evaluate
the given value :-(
‣ Vue markup in the HTML is a Vue template; it should be
kept in mind that they might be eval()-ed.
‣ Content Security Policy without unsafe-eval will prohibit
the use of such templates, but it needs us to use the
render function or pre-compile templates into it.