Zum Inhalt springen

Unsafe HTML In Template (ARCH9134)

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

Key swift.security.unsafe-html-in-template · Severity warning · Category security · CWE CWE-79

Flags #unsafeHTML / raw HTML tags in Leaf templates fed from variables, and loadHTMLString with a template built from data.

#unsafeHTML(user.bio)
#(user.bio)

Let the engine escape; mark trusted fragments explicitly and never user data.