vetkit.swift.injection.nspredicate-format-interpolation
An NSPredicate format string is built with interpolation instead of %@ arguments. A crafted value can change the predicate (for example to match every Core Data record).
Last updated:
Suite: Security
swift
An NSPredicate format string is built with interpolation instead of %@ arguments. A crafted value can change the predicate (for example to match every Core Data record).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use format arguments (NSPredicate(format: "name == %@", name)) or #Predicate.
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.