Zum Inhalt springen

V-Html Raw Rendering (ARCH3325)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key typescript.vue.v-html · Severity error · Category security

Vue: flags v-html, which renders its value as raw HTML. Anything reaching it from outside the codebase is executed - stored XSS.

<div v-html="comment.body"></div>
<div>{{ comment.body }}</div>
<!-- or render a sanitised value: v-html="sanitize(comment.body)" -->