Intel

AIKIDO-2026-633941

mongodb/laravel-mongodb is vulnerable to NoSQL Injection

NoSQL InjectionCVE-2026-88022 Published 2 days ago

84

High Risk

This Affects:

PHPmongodb/laravel-mongodb
1.0.0 - 5.10.0
Fixed in 5.11.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

mongodb/laravel-mongodb is vulnerable to NoSQL Injection in versions 1.0.0 - 5.10.0.

How to fix this

Upgrade the mongodb/laravel-mongodb library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform