vetkit.swift.webview.javascript-interpolation
JavaScript evaluated in a web view is built with string interpolation. A quote or script fragment in the interpolated value runs as code in the page (script injection).
Last updated:
Suite: Security
swift
JavaScript evaluated in a web view is built with string interpolation. A quote or script fragment in the interpolated value runs as code in the page (script injection).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Pass values as arguments with callAsyncJavaScript(_:arguments:in:contentWorld:), or JSON-encode them with JSONSerialization / JSONEncoder before embedding.
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.