I'm taking user-inputted data from the server and rendering it back into an input element on the client, which is using Vue.
If I have <input :value="untrustedValue">
, I imagine this opens up to XSS attacks just like vanilla HTML <input>
such as, if a user types in "> <script>alert('XSS injection')</script>
Is this still the case when using the v-model
attribute, considering that Vue does a little magic behind the scenes?