VueJS

VueJS

VueJS is an approachable, performant and versatile framework for building web user interfaces.

Client-Side Injection

// XSS Injection
Vue.createApp({
  template: `<div>` + userProvidedString + `</div>`
}).mount('#app')

<div v-html="userProvidedHtml"></div>

h('div', { innerHTML: this.userProvidedHtml })

<div innerHTML={this.userProvidedHtml}></div>

// Javascript protocol injection
<a :href="userProvidedUrl">click me</a>

// CSS Injection
<h1 :style="userProvidedStyles">Title</h1>

Source: VueJS - Security

vue-router

Open redirect using ///