Intel

AIKIDO-2026-656127

mongo is vulnerable to NoSQL Injection

NoSQL InjectionCVE-2026-88030 Published Yesterday

61

Medium Risk

This Affects:

RUBYmongo
0.0.1 - 2.25.0
Fixed in 2.26.0
Are you affected? Scan for Free

TL;DR

GridFS read, delete, and abort operations in the mongo gem build MongoDB filters directly from a caller supplied file ID without requiring an exact match. A Hash value such as one containing a $gt or MinKey operator is interpreted as query criteria instead of a literal identifier, so a single ID lookup can match chunks belonging to other files in the bucket. This lets a Hash shaped ID disclose the contents of unrelated files or delete chunks across the whole bucket instead of just the intended file. The fix wraps every ID in $eq across the read, delete, and abort paths so only exact matches apply.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass externally influenced values as GridFS file IDs.

Background info

mongo is vulnerable to NoSQL Injection in versions 0.0.1 - 2.25.0.

How to fix this

Upgrade the mongo 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