alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 70 forks source link

Vulnerable to XSS/script injection #65

Open hybridwebdev opened 4 years ago

hybridwebdev commented 4 years ago

Simply setting a string to the following: <script>alert('arf, arf. Gotcha!');</script> and voila, your template will render it, script intact, resulting in the script running.

Needless to say this is incredibly dangerous.