mongodb/laravel-mongodb is vulnerable to NoSQL Injection
84
High Risk
The MongoDB query builder passes array values straight into explicit equality filters when the three-argument where form is used with the = or eq operator, and through the find and delete methods that share that path. A user controlled array such as ['$ne' => null] is interpreted as MongoDB query operators instead of a literal value. This lets a caller match or remove documents other than the intended target, exposing or deleting unintended records. The fix wraps such values in $eq and rejects operator arrays supplied on identifier fields.
You are affected if you are using a version that falls within the vulnerable range and your application forwards externally influenced values into three-argument where('='), find, or delete calls.
mongodb/laravel-mongodb is vulnerable to NoSQL Injection in versions 1.0.0 - 5.10.0.
Upgrade the mongodb/laravel-mongodb library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.