Skip to content

NoSQL Injection (ARCH9140)

Key swift.security.nosql-injection · Severity error · Category security · CWE CWE-943

Flags MongoDB documents / filters built by string interpolation.

try Document(fromJSON: "{ name: '\(name)' }")
["name": name] as Document

Build filters with typed documents.