deepsourcestatus / test-repository

Use interpolation expressions instead of the v-html attribute JS-0693
Security
Major
8 months ago8 months old
'v-html' directive can lead to XSS attack
 8    @click="functionCall"
 9    v-bind:foo="'bar'"
10    :class="[{ 'foo': isFoo }, { 'bar': isBar }]"
11    v-html="someHTML"12  >
13    <div v-for="item in navItems">{{item.name}}</div>
14  </div>