mongodb/laravel-mongodb is vulnerable to NoSQL Injection
71
High Risk
Embedded-document handling uses caller-supplied record keys and relation identifiers directly as query conditions without rejecting MongoDB operators. A user who controls an embedded record identifier can supply a dollar-prefixed operator array that is interpreted as a query condition rather than a literal key. This lets embedded documents be matched broadly, enabling mass deletion or overwrite of embedded records beyond the intended target. The fix rejects operator arrays used as scalar ids or relation keys.
You are affected if you are using a version that falls within the vulnerable range and your application lets externally influenced values reach embedded-document keys or relation identifiers.
mongodb/laravel-mongodb is vulnerable to NoSQL Injection in versions 4.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.