vetkit.py.nosql-injection.request-filter
JSON request data is placed into a MongoDB query filter without type checks. Objects such as {"$ne": null} change the query logic (operator injection).
Last updated:
Suite: Security
python
JSON request data is placed into a MongoDB query filter without type checks. Objects such as {"$ne": null} change the query logic (operator injection).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Validate request fields with a schema (pydantic/marshmallow) or cast them with str()/int() before querying.
References
Source: packages/engine/rules/sast/python.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.