mongodb/laravel-mongodb is vulnerable to NoSQL Injection
71
High Risk
Polymorphic relation handling uses stored relation identifiers directly as query conditions without rejecting MongoDB operators. A user who controls a polymorphic relation identifier can supply a dollar-prefixed operator array that is interpreted as a query condition instead of a literal identifier. This lets the relation query return documents other than the intended one, disclosing unintended records. 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 polymorphic relation identifiers.
mongodb/laravel-mongodb is vulnerable to NoSQL Injection in versions 1.2.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.