Intel

AIKIDO-2026-860953

mongodb/mongodb is vulnerable to NoSQL Injection

NoSQL InjectionCVE-2026-88023 Published 2 days ago

61

Medium Risk

This Affects:

PHPmongodb/mongodb
1.1.0 - 1.21.4
Fixed in 1.21.5
2.0.0 - 2.4.1
Fixed in 2.4.2
Are you affected? Scan for Free

TL;DR

The GridFS CollectionWrapper embeds caller-supplied file identifiers directly into MongoDB filters for find, delete, update, and rename operations. A file identifier that is an array containing query operators such as $gt is interpreted as query conditions instead of a literal value, broadening the affected query. This lets callers download, delete, rename, or clean up GridFS files and chunks other than the intended target. The patch wraps every embedded ID in $eq so it matches only as a literal value.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use GridFS bucket operations with file identifiers derived from untrusted input.

Background info

mongodb/mongodb is vulnerable to NoSQL Injection in versions 1.1.0 - 1.21.4 and 2.0.0 - 2.4.1.

How to fix this

Upgrade the mongodb/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