vetkit.swift.webview.html-interpolation
HTML built with string interpolation is loaded into a web view with a non-nil base URL. Markup in the interpolated value executes with that origin's privileges (XSS).
Last updated:
Suite: Security
swift
HTML built with string interpolation is loaded into a web view with a non-nil base URL. Markup in the interpolated value executes with that origin's privileges (XSS).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
HTML-escape interpolated values (or render them as text) and pass baseURL: nil when the content does not need same-origin access.
References
Source: packages/engine/rules/sast/swift.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.