Intel

AIKIDO-2026-124430

mongodb/laravel-mongodb is vulnerable to NoSQL Injection

NoSQL InjectionCVE-2026-88028 Published 2 days ago

71

High Risk

This Affects:

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

TL;DR

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.

Who does this affect?

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.

Background info

mongodb/laravel-mongodb is vulnerable to NoSQL Injection in versions 1.2.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