Skill Wiki v0.1.0
anti-pattern @security/anti-pattern-render-untrusted-html

Render Untrusted Html

Taking a string that came (directly or transitively) from a user and inserting it into the DOM as HTML — via `element.innerHTML = …`, React `dangerouslySetInnerHTML`, Vue `v-html`, Svelte `{@html …}`, or `document.…

Skill
@security
Domain
security
Version
0.1.0
Quality
4.0
Edges
2 out · 3 in
Tokens
92/364/635
$ prime install @security/anti-pattern-render-untrusted-html

Projection

Always in _index.xml · the agent never has to ask for this.

RenderUntrustedHtml [anti-pattern] v0.1.0

Taking a string that came (directly or transitively) from a user and inserting it into the DOM as HTML — via element.innerHTML = …, React dangerouslySetInnerHTML, Vue v-html, Svelte {@html …}, or document.write. Stored XSS is the result when the string survives a round-trip through the database.

Source

prime-system/examples/security-appsec/primes/compiled/@security/anti-pattern-render-untrusted-html/atom.yaml

Compiled at 2026-05-10