mongodb/mongodb is vulnerable to NoSQL Injection
61
Medium Risk
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.
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.
mongodb/mongodb is vulnerable to NoSQL Injection in versions 1.1.0 - 1.21.4 and 2.0.0 - 2.4.1.
Upgrade the mongodb/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.